JSON
class in package klyn.io.json

    public class JSON:

JSON

JSON utility entry-point.

Notes:

- Native parsing/serialization is used for performance.
- File and reader/writer workflows are handled in Klyn wrappers.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public static | parse `parse(json as String) as Object:` | Parses JSON text into its natural Klyn representation.
public static | parse `parse<TYPE>(json as String) as TYPE:` | Parses JSON text using the explicitly requested static type.
public static | parseList `parseList(source as Object) as ArrayList<Object> throws IOException:` | Parses JSON array from a string, a reader or a file.
public static | parseMap `parseMap(source as Object) as Map<String, Object> throws IOException:` | Parses JSON object from a string, a reader or a file.
public static | stringify `stringify(target as Object, object as Object = null, spaces as Boolean = true, pretty as Boolean = false, indent as Int = 0) as String throws JSONParseException, IOException:` | Serializes a value as JSON.