Package-level declarations
Main package encapsulating the public API of the library.
Main package encapsulating the public API of the library.
Types
Exception class thrown if an unexpected character is encountered in the JSON5 input.
Annotation to set the class discriminator of polymorphic base types.
Type-safe builder to configure the parameters of a custom Json5 instance.
Base class for errors related to the translation of syntactically correct JSON5 input into an object hierarchy.
Exception class thrown if a specific key is encountered for the second time in the same JSON5 object.
Exception class thrown if an unexpected end of the input stream is encountered.
Base class of all Exceptions that the library raises in response to invalid JSON5 input.
Main interface to serialize a given object hierarchy to JSON5 or vice versa.
Exception class thrown if an unexpected literal is encountered in the JSON5 input.
Exception class thrown if a required field of a Kotlin class is missing.
Exception class thrown if a number in the JSON5 input exceeds the range that the parser is able to handle.
Base class for all errors related to parsing the JSON5 input.
Annotation to specify a comment that should be serialized to every JSON5 occurrence of a property.
Exception class thrown if a specified value in the JSON5 input is not in line with the underlying data model.
Exception class thrown if a specified object key is not part of the data model.
Functions
Convenience function that calls Json5.decodeFromStream with the default serializer for the type.
Deserializes the JSON5 input from inputStream using the given deserializer and returns an equivalent object hierarchy.
Convenience function that calls Json5.encodeToStream with the default serializer for the type.
Serializes the given value using the given serializer and writes the result to outputStream.