Skip to main content
insightsoftware Documentation insightsoftware Documentation
{%article.title%}
Published:
Was this article helpful?
0 out of 0 found this helpful

ImportObject

Use this command to import object properties and values from a JSON-formatted document into a variable of type object.

Syntax example

IMPORTOBJECT ObjectVarName DocName

where:

  • ObjectVarName is the object type variable to import to.
  • DocName is the name for the JSON-formatted document in the document cache and must be unique. Optionally, you can include a file path. All file paths are relative to the document cache. If the path includes spaces, you must enclose it in double quotation marks.

Syntax example

Create Variable TestObject as Object

IMPORTOBJECT TestObject ObjectsExample.json

Published:

ImportObject

Use this command to import object properties and values from a JSON-formatted document into a variable of type object.

Syntax example

IMPORTOBJECT ObjectVarName DocName

where:

  • ObjectVarName is the object type variable to import to.
  • DocName is the name for the JSON-formatted document in the document cache and must be unique. Optionally, you can include a file path. All file paths are relative to the document cache. If the path includes spaces, you must enclose it in double quotation marks.

Syntax example

Create Variable TestObject as Object

IMPORTOBJECT TestObject ObjectsExample.json

For an optimal Community experience, Please view on Desktop