Structural Characters and Literals
The Internet Object format includes several structural characters and literals that are used to structure and delimit data within a document. These characters are used in conjunction with objects, strings, arrays, numbers, and whitespace to create complex and flexible data structures.
Structural Characters
Structural characters are used to define the structure of the data within an Internet Object document. The following are the structural characters used in the Internet Object format.
Symbol | Characters | Unicode | Description |
---|---|---|---|
| Comma |
| Separator between values |
| Tilde |
| Record delimiter in collection |
| Colon |
| Key-value separator |
| Open Square Bracket |
| Start of array |
| Close Square Bracket |
| End of array |
| Open Curly Bracket |
| Start of object |
| Close Curly Bracket |
| End of object |
| Hyphens |
| Header and data separator |
| Hash |
| Comment start |
| Double Quote |
| String delimiter |
| Single Quote |
| String delimiter |
| At Symbol |
| Starts the raw string |
Literals
Literals are specific values that can be used within an Internet Object document. The following are the literals used in the Internet Object format.
Literals | Represents |
---|---|
| Boolean value True (short) |
| Boolean value True |
| Boolean value False (short) |
| Boolean value False |
| Number value Infinity |
| Number value Not a Number |
| Null value (short) |
| Null value |
Other Special Characters
Special characters are used in conjunction with structural characters and literals to provide additional functionality or context within an Internet Object document. The following are the special characters used in the Internet Object format.
Symbol | Characters | Unicode | Application |
---|---|---|---|
| Question Mark |
| Shortcut for declaring optional member when suffexed to the key name in object schema |
| Asterisk |
| Shortcut for declaring nullable member when suffexed to the key name in object schema. Also used to make schema accept undeclared variables. |
| Hyphen / Minus |
| Represents negative value |
| Plus |
| Represents positive value |
| Doller |
| Denotes a variable |
Last updated