string

The string method returns the JSON value as a string.

Syntax

string()

Returns

(String). The JSON value as a string.

Example

local fh = io.open("example_json.json", "r")
local file_content = fh:read("*all")
fh:close()
    
local myJsonValue = parse_json(file_content)

print(myJsonValue:string())

_HP_HTML5_bannerTitle.htm