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 and casts to the requested type.
public static | parse `parse<TYPE>(json as String) as TYPE:` | Parses JSON text and casts to the requested 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 IOException:` | Serializes a value as JSON.