The size
method returns the number of attributes (name/value pairs) in the JSON object.
size()
(Number). The number of attributes in the JSON object.
local myJsonObject = LuaJsonObject:new( { product="IDOL" , version=11 } ) print (myJsonObject:size()) -- 2
|