jsonc library

JSON with comments and trailing commas.

Classes

JsoncCodec
A JsoncCodec encodes JSON objects to strings and decodes JSON strings with comments to JSON objects.
JsoncDecoder
Parses JSON strings with comments and builds the corresponding objects.

Constants

jsonc → const JsoncCodec
An instance of the default implementation of the JsoncCodec.

Functions

jsoncDecode(String source, {Object? reviver(Object? key, Object? value)?}) → dynamic
Parses the JSON string with comments and returns the resulting JSON object.
jsoncEncode(Object? object, {Object? toEncodable(Object? nonEncodable)?}) String
Converts object to a JSON string.