The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
CSV2List
llList2Json
Summary
Function: string llList2Json( string type, list values );
This function takes a list and returns a JSON string of that list as either a json object or json array.
Returns a string made by parsing src, a string representing json.
• string
|
type
|
|
|
|
• list
|
values
|
|
|
|
To convert a json formatted string into a list use llJson2List.
Specification
See Json_usage_in_LSL
- If type is JSON_OBJECT the list must be a strided list of key, value pairs and a string representing a json object will be returned.
- If type is JSON_ARRAY then a string representing a json array will be returned.
- If type is any other string then JSON_INVALID will be returned.
See Also
Constants
Functions
Articles