Class IO.Json

Reads JSON data into a table or object

Constructors

Json()

Properties

verbose show messages while processing the data

Methods

read(IO.File file, class clazz) parse json from a file and populate into a table or object
read(string json, class clazz) parse json from a string and populate into a table or object
write(any object, IO.File file, bool pretty) serialize an object to json in a file
write(any object, bool pretty) serialize an object to json

Constructor Documentation


Json()

Property Documentation


bool verbose

show messages while processing the data

Method Documentation


any read(IO.File file, class clazz)

Parse json from a file and populate into a table or object.

This method will bind the JSON to a new instance of an existing class if the class definition is given as an optional second parameter.

Parameters

Returns


any read(string json, class clazz)

Parse json from a string and populate into a table or object

Parameters

Returns


void write(any object, IO.File file, bool pretty)

Serialize an object to json in a file

Parameters


void write(any object, bool pretty)

Serialize an object to json

Parameters



Creative Commons Logo This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.