4D v14.3

Structure of 4D language objects

Home

 
4D v14.3
Structure of 4D language objects

Structure of 4D language objects  


 

 

The commands of the Objects (Language) theme create and work with data in object form. This extends the exchange opportunities between 4D and any application that supports structured data. 

4D objects are created and initialized using the C_OBJECT ("Compiler" theme) or ARRAY OBJECT ("Arrays" theme) commands.

The structure of "native" 4D objects is based on the classic principle of "property/value" pairs. The syntax of these objects is based on notation JSON, but does not follow it completely. 

Note: To work with JSON objects, you must use the commands found in the "JSON" theme. 

  • A property name is always a text, for example "Name".
  • A property value can be of the following type:
    • number (Real, Integer, etc.)
    • text
    • array (text, real, longint, integer, Boolean, object, pointer)
    • null
    • Boolean
    • pointer (stored as such, evaluated using the JSON Stringify command or when copying),
    • date (format "YYYY-MM-DDTHH:mm:ssZ")
    • object (objects can be nested on several levels)

 
PROPERTIES 

Product: 4D
Theme: Objects (Language)

 
ARTICLE USAGE

4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)