stdx.encoding.json

Function Description

The json package is used for processing JSON data, enabling mutual conversion between String, JsonValue, and DataModel.

JsonValue encapsulates JSON data formats, including object, array, string, number, true, false, and null.

For details about DataModel, refer to: serialization package documentation.

JSON syntax rules can be found at: Introducing JSON.

JSON data interchange standards can be found at: ECMA-404 The JSON Data Interchange Standard.

API List

Interfaces

Interface Name Function
ToJson Used for implementing mutual conversion between JsonValue and DataModel.

Classes

Class Name Function
JsonArray Creates an empty JsonArray.
JsonBool Encapsulates a specified Bool type instance into a JsonBool instance.
JsonFloat Encapsulates a specified Float64 type instance into a JsonFloat instance.
JsonInt Encapsulates a specified Int64 type instance into a JsonInt instance.
JsonNull Converts JsonNull to a string.
JsonObject Creates an empty JsonObject.
JsonString Encapsulates a specified String type instance into a JsonString instance.
JsonValue This class serves as the JSON data layer, primarily used for mutual conversion between JsonValue and String data.

Enums

Enum Name Function
JsonKind Represents the specific type of JsonValue.

Exception Classes

Exception Class Name Function
JsonException Used for scenarios where exceptions occur during JsonValue type usage.