LeanJSON Class
JSON object for parsing a string into a useable JSON object
Constructor
LeanJSON
-
str:String
Parameters:
-
str:String
StringString of representing the JSON object (will be parsed and made into an easily readable Dictionary
object)
Methods
Array
-
key:String
Retrieve the an array for the associated key (returns a LeanJSON[] Array).
Parameters:
-
key:String
StringString The key of the associated array you wish to retrieve
Returns:
LeanJSON[] Array for key
Boolean
-
key:String
Retrieve the boolean value for the associated key
Parameters:
-
key:String
StringString The key of the associated string you wish to retrieve
Returns:
Value for key
Double
-
key:String
Retrieve the double value for the associated key
Parameters:
-
key:String
StringString The key of the associated string you wish to retrieve
Returns:
Value for key
Float
-
key:String
Retrieve the float value for the associated key
Parameters:
-
key:String
StringString The key of the associated string you wish to retrieve
Returns:
Value for key
Int
-
key:String
Retrieve the int value for the associated key
Parameters:
-
key:String
StringString The key of the associated string you wish to retrieve
Returns:
Value for key
Object
-
key:String
Retrieve the object on the associated key (this is used when the JSON has nested JSON objects)
Parameters:
-
key:String
StringString The key of the associated object you wish to retrieve
Returns:
Value for key
String
-
key:String
Retrieve the string the associated key
Parameters:
-
key:String
StringString The key of the associated string you wish to retrieve
Returns:
Value for key