Jsona - Paranoid-AF/Jsona GitHub Wiki

Jsona is a namespace containing functions for parsing JSON into Value and stringifying Value back into JSON, and a class called JsonaValue for storage of data.

Functions

Jsona::parse()

Parses JSON into a JsonaValue.

Parameters

string str: The string to parse as JSON.

Return Value

Value@ The value of the JSON (can be array or object) stored in JsonaValue.


Jsona::stringify()

Converts JsonaValue back into a JSON string.

Parameters

Value@ head: The root of JSON object tree, also the value returned by Jsona.parse().

Return Value

string A string containing the value of the JSON (can be array or object) stored in JsonaValue.