file-linesJson

parse(json)

Parse string to table

Parameters:

  • json (string).

Return:

  • table

Example Usage:

-- Example code showing how to use the function
local response = http.get("http://ip-api.com/json/24.48.0.1", 5000)
local js = json.parse(response)
player.addMessage(js.country)

stringify(table)

Converts a table to a json string

Parameters:

  • table (table).

Return:

  • string

Example Usage:

Last updated