Module json5

Source
Expand description

JSON5, a superset of JSON with expanded syntax.

See crate ::json5.

Structs§

Deserializer
Location
One-based line and column at which the error was detected.

Enums§

Error
A bare bones error type which currently just collapses all the underlying errors in to a single string… This is fine for displaying to the user, but not very useful otherwise. Work to be done here.

Functions§

from_str
Deserialize an instance of type T from a string of JSON5 text. Can fail if the input is invalid JSON5, or doesn’t match the structure of the target type.
to_string
Attempts to serialize the input as a JSON5 string (actually a JSON string).

Type Aliases§

Result
Alias for a Result with error type json5::Error