clear

The clear method clears the array, so that it contains no values.

Syntax

clear()

Example

local myJsonArray = LuaJsonArray:new(4,"a string",true)
myJsonArray:clear()
print (myJsonArray:string())
-- []

_HP_HTML5_bannerTitle.htm