json.new

March 26, 2020 Contributors

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

json.strerror and json.decode