Package-level declarations
Types
Pre-configured Json instances for common serialization scenarios.
Default Json configuration used by the conversion utilities in this file.
Internal logger holder for JSON element utilities.
Properties
Returns the boolean value of this JsonElement's primitive content. Extension property on JsonElement.
Returns the double value of this JsonElement's primitive content. Extension property on JsonElement.
Returns true if this JsonElement is a JsonPrimitive. Extension property on JsonElement.
Returns this JsonElement as a JsonObject. Extension property on JsonElement.
Returns the string content of this JsonElement as a JsonPrimitive. Extension property on JsonElement.
Functions
Navigates to the nested element at keys and returns its boolean value. Extension function on JsonElement.
Navigates to the nested element at keys and returns its boolean value, or null if not found. Extension function on JsonElement.
Checks whether this JsonElement contains the nested path specified by keys.
Applies the default JSON configuration (pretty-print with two-space indent) to this JsonBuilder.
Navigates to the nested element at keys and returns its double value. Extension function on JsonElement.
Navigates to the nested element at keys and returns its double value, or null if not found. Extension function on JsonElement.
Iterates over JsonObject elements within this JsonElement.
Navigates to the nested element at keys and returns its integer value, or null if not found. Extension function on JsonElement.
Returns true if this JsonElement is not empty. Extension function on JsonElement.
Navigates to the nested element at keys and returns it as a list of JsonElement. Extension function on JsonElement.
Navigates to the nested element at keys and returns it as a list of JsonElement, or null if not found. Extension function on JsonElement.
Navigates to the nested element at keys and returns it as a JsonObject. Extension function on JsonElement.
Navigates to the nested element at keys and returns it as a JsonObject, or null if not found. Extension function on JsonElement.
Navigates to the nested element at keys and returns its string value. Extension function on JsonElement.
Navigates to the nested element at keys and returns its string value, or null if not found. Extension function on JsonElement.
Encodes this JsonElement as a pretty-printed JSON string.
Converts this value to a JsonElement tree using kotlinx.serialization.
Parses this String into a JsonElement.
Converts this JsonElement (which must be a JsonArray) to a List of JsonElement. Extension function on JsonElement.