Value Representations
Overview of the value types Internet Object can represent.
Internet Object supports a rich set of value types, from simple scalars such as numbers and strings to structured values such as objects and arrays. Values are the fundamental building blocks of every document.
All values are designed to be:
Human-readable — easy to read and write by hand.
Machine-parseable — efficient to process.
Type-clear — each value has an unambiguous type.
Expressive — rich enough to model complex data.
Value categories
Scalar values
Scalar values represent single, atomic data:
Numbers — integers, floating-point, and special numeric values
Strings — text in open, regular, and raw forms
Booleans — true / false values
Nulls — the absence of a value
Binary — binary data encoded as Base64
Date and Time — temporal values with ISO 8601 compatibility
Structured values
Structured values contain other values:
String types
Internet Object provides three string forms for different text scenarios:
Numeric types
Internet Object supports several numeric forms for different precision and range needs:
Temporal types
Internet Object has built-in date and time values:
Date
d'2024-03-20'
Date only
d'2024-03-20', d'2024'
Time
t'14:30:45'
Time only
t'14:30:45.123', t'09:00'
DateTime
dt'2024-03-20T14:30:45Z'
Combined date and time
dt'2024-03-20T14:30:45.123Z'
Binary data
For binary data, Internet Object uses a Base64 byte string (b'SGVsbG8='), an efficient way to carry bytes as text.
Value syntax at a glance
Type handling
Internet Object maintains strict type boundaries:
No implicit conversion — values keep their declared types.
Syntax-driven typing — a value's type follows from how it is written.
Validation — type constraints are enforced during validation, against the schema.
Comments and whitespace
Values can be annotated with comments and laid out with whitespace for readability:
See Also
Internet Object Document — the overall document structure
Schema Data Types — typing and validation
Best Practices & Guidelines — effective use of the format
Last updated
Was this helpful?
