JSONUtils

class JSONUtils(jsonString: String)

Constructors

Link copied to clipboard
constructor(jsonString: String)

Functions

Link copied to clipboard

Extracts a map of key-value pairs from a JSON string.

Link copied to clipboard
fun parseJSON(jsonString: String): Any?

Parses a JSON string and returns either a JSONObject or JSONArray based on its structure.

Link copied to clipboard

Converts a JSON string to a pretty-printed JSON string.