Literals
Literals are specific values that can be used within an Internet Object document. They represent special values and basic data indicators. Below are the literals used in the Internet Object format:
Literals | Represents | Notes |
---|---|---|
| Boolean value True (short) | Case-sensitive |
| Boolean value True | Use interchangeably with |
| Boolean value False (short) | Case-sensitive |
| Boolean value False | Use interchangeably with |
| Number value Infinity | Represents positive infinity |
| Number value Negative Infinity | Represents negative infinity |
| Number value Not a Number | Represents an undefined or unrepresentable value |
| Null value (short) | Case-sensitive |
| Null value | Use interchangeably with |
Usage Examples
Notes
Case Sensitivity: All literals are case-sensitive. For example,
True
orFALSE
are not recognized as valid literals.Short vs. Long Forms: The short forms (
T
,F
,N
) are convenient for brevity, while the long forms (true
,false
,null
) enhance readability and compatibility with JSON.
Last updated