Skip to main content

Name

json.new — Create an empty JSON object

Synopsis

require("json");

json.new()

Description

Create an empty JSON object.

o = json.new();
o.name = "value";
print(o); -- { "name": "value" }

See Also

Was this page helpful?