json

json.json.has

Declaration
lua
json.has(data, path)
Description
Check if path exists in data.
Parameters
NameTypeRequiredDefaultDescription
datatable|stringRequired—
pathstringRequired—
Return Values
TypeDescription
boolean
Example
lua
if json.has(data, "users.0") then ... end