jsonc top-level constant
JsoncCodec
const jsonc
An instance of the default implementation of the JsoncCodec.
This instance provides a convenient access to the most common JSON use cases.
Examples:
var encoded = jsonc.encode([1, 2, { "a": null }]);
var decoded = jsonc.decode('["foo", { "bar": 499 }]');
The top-level jsoncEncode and jsoncDecode functions may be used instead if a local variable shadows the jsonc constant.
Implementation
const JsoncCodec jsonc = JsoncCodec();