string
The string
method returns the JSON object as a string.
Syntax
string()
Returns
(String). The JSON object as a string.
Example
local myJsonObject = LuaJsonObject:new( { product="IDOL" , version=11 } ) print (myJsonObject:string()) -- {"product":"IDOL","version":11}