You cannot Instance this class with Instance.new()

Functions

void

The void() function returns a empty representation for JSON. An example:

printl(Json.void())

parse(string json)

The parse function returns a table of contents of the json given. An example:

local json_data = Json.parse('{ "fruit": "Apple", "size": "Large", "color": "Red" }')
printl(json_data["fruit"])

This function returns error (if any if none then returns nil). An example:

local err = Json.parse("dat")
if err ~= nil then 
    printl(err) -- outputs: 
end

serialize(Array data)

An example:

local serializedData = Json.serialize({
    Something = "real"
})