Difference between revisions of "LlList2Json"
Jump to navigation
Jump to search
Kelly Linden (talk | contribs) (Created page with "{{LSL Function |func_id=|func_sleep=0.0|func_energy=10.0 |func=llList2Json|return_type=string|p1_type=string|p1_name=type|p2_type=list|p2_name=values |func_footnote= To convert a…") |
(No difference)
|
Revision as of 15:07, 10 June 2013
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: string llList2Json( string type, list values );? | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
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
- 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.