LifeLua 21-08-2025
Documentation for LifeLua, a Lua interpreter for the PS Vita
Loading...
Searching...
No Matches
json

JSON library. More...

Functions

table json.decode (string json)
 
string json.encode (table table)
 
string json.minify (string json)
 
boolean json.isnull (jsonnull value)
 
string json.version (string json)
 

Variables

jsonnull json.null
 JSON null value.
 

Detailed Description

Function Documentation

◆ json.decode()

table json.decode ( string json)

Parses a JSON string to a table

◆ json.encode()

string json.encode ( table table)

Parses a table to a JSON string

◆ json.isnull()

boolean json.isnull ( jsonnull value)

Checks if a value is null in JSON (nil in Lua and null in JSON aren't the same!)

◆ json.minify()

string json.minify ( string json)

Minifies a JSON string, removes any pretty formatting.

◆ json.version()

string json.version ( string json)
Returns
cJSON version