JSON
Noir.Libraries.JSON: NoirLibrary
A library containing helper methods to serialize Lua objects into JSON and back.
This code is from https://gist.github.com/tylerneylon/59f4bcf316be525b30ab
Noir.Libraries.JSON.Null: table
Represents a null value.
Returns the type of the provided object.
Used internally. Do not use in your code.
Parameters
obj
: any
Returns
"nil"|"boolean"|"number"|"string"|"table"|"function"|"array"
Escapes a string for JSON.
Used internally. Do not use in your code.
Parameters
str
: string
Returns
string
Finds the point where a delimiter is and simply returns the point after.
Used internally. Do not use in your code.
Parameters
str
: stringpos
: integerdelim
: stringerrIfMissing
: boolean|nil
Returns
integer
boolean
Parses a string.
Used internally. Do not use in your code.
Parameters
str
: stringpos
: integerval
: string|nil
Returns
string
integer
Parses a number.
Used internally. Do not use in your code.
Parameters
str
: stringpos
: integer
Returns
integer
integer
Encodes a Lua object as a JSON string.
Parameters
obj
: table|number|string|boolean|nilasKey
: boolean|nil
Returns
string
Decodes a JSON string into a Lua object.
Parameters
str
: stringpos
: integer|nilendDelim
: string|nil
Returns
any
integer
Last updated