Module json5

Source
Expand description

JSON5, a superset of JSON with expanded syntax.

See crate ::json5.

Structs§

Deserializer
A deserializer that knows how to parse JSON5 and map it on to types implementing Deserialize.
Error
An error serializing or deserializing JSON5.
Position
The line and column that an error occured.
Serializer
A serializer that knows how to serialize types implementing Serialize as JSON5.

Enums§

ErrorCode
A code identifying an error originating within this crate.

Functions§

from_str
Parse a JSON5 string and map it to a type implementing Deserialize.
to_string
Serialize a type implementing Serialize to a JSON5 string.
to_writer
Serialize a type implementing Serialize to JSON5 and write it to the given writer.