Releases: SirTony/json.d
Releases · SirTony/json.d
Adding non-standard extensions.
The primary focus of this release is the addition of (optional) non-standard extensions to JSON.
These extensions include:
- Single-quoted strings
- Unquoted (identifier) object keys
- Trailing commas in objects and arrays
- Single ling comments beginning with
//
- Multi-line comments beginning with
/*
and ending with*/
. Multi-line comments can be nested inside other multi-line comments.
JavaScript's undefined
is not supported.
Several other small fixes and changes are also included.
Overhauling library internals and public API
This release includes many changes, including breaking changes.
The main changes are:
- JsonValue no longer tries to overload all applicable operators for every internal type
- JsonValue has convenience functions for testing a value's type
- JsonValue now differentiates between signed, unsigned, and floating point number types
- JsonValue no longer has a
Boolean
type, instead it hasTrue
andFalse
types - JsonValue's default constructor has been re-enabled to allow for null values to be easily created
- JsonValue has a constructor that accepts
typeof( null )
to allow null values to be assigned
Initial release
The initial JSON.d release. Supports basic reading, writing, and manipulation of JSON documents.