JSON libraryΒΆ

MoonSharp has built-in json library and it’s easy to use

json.parse(jsonString)

Returns a table with the contents of the specified json string.

json.serialize(table)

Returns a json string with the contents of the specified table.

json.isNull(val)

Returns true if the value specified is a null read from a json

json.null()

Returns a special value which is a representation of a null in a json