nanos world API Reference Unofficial documentation
Static function Shared

JSON.parse

Returns a value representing the decoded JSON string

Syntax

Lua
JSON.parse(value)

Parameters

Name Type Default Description
value string the JSON that will become a table

Returns

  • any the json in table

Examples

Parses a JSON string into a Lua table
local decoded_value = JSON.parse('[1,2,3,{"x":10,"y":"Vector(1.0, 2.0, 3.0)"},"he"]')