lon library

Classes

LonCodec
Lossless JSON-value codec for Language Object Notation v1.

Constants

lon → const LonCodec
Default canonical LON v1 codec.
lonFormatVersion → const int
The normative Language Object Notation version implemented by this package.

Functions

jsonToLon(String source, {bool useTables = true, int maxDepth = 512, int maxExpandedElements = 1000000, int maxInputCodeUnits = 64 * 1024 * 1024, int maxOutputCodeUnits = 64 * 1024 * 1024}) String
Converts JSON text to canonical Language Object Notation.
lonToJson(String source, {int maxDepth = 512, int maxExpandedElements = 1000000, int maxInputCodeUnits = 64 * 1024 * 1024, int maxOutputCodeUnits = 64 * 1024 * 1024}) String
Converts Language Object Notation to compact JSON text.