Documentation
¶
Overview ¶
Package fjson provides converters to FJSON (JSON with some extensions) for built-in and `types` types.
See contributing guidelines and documentation for package `types` for details.
Mapping ¶
Composite types
*types.Document {"$k": ["<key 1>", "<key 2>", ...], "<key 1>": <value 1>, "<key 2>": <value 2>, ...}
*types.Array JSON array
Scalar types
float64 {"$f": JSON number} or {"$f": "Infinity|-Infinity|NaN"}
string JSON string
types.Binary {"$b": "<base 64 string>", "s": <subtype number>}
types.ObjectID {"$o": "<ObjectID as 24 character hex string"}
bool JSON true / false values
time.Time {"$d": milliseconds since epoch as JSON number}
types.NullType JSON null
types.Regex {"$r": "<string without terminating 0x0>", "o": "<string without terminating 0x0>"}
int32 JSON number
types.Timestamp {"$t": "<number as string>"}
int64 {"$l": "<number as string>"}
TODO Decimal128 {"$n": "<number as string>"}
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.