empty
The empty
method determines whether the JSON object is empty.
Syntax
empty()
Returns
(Boolean). Returns true
if the object has no attributes (name/value pairs).
Example
local myJsonObject = LuaJsonObject:new() print(myJsonObject:empty()) -- true