Difference between revisions of "LlJson2List"

From Second Life Wiki
Jump to navigation Jump to search
m
m (added date of release)
Line 28: Line 28:
|cat3=Data Conversion
|cat3=Data Conversion
|cat4=JSON
|cat4=JSON
|history = Date of Release  [[ Release_Notes/Second_Life_Server/13#13.05.20.276191 | 20/05/2013 ]]
}}
}}

Revision as of 12:34, 25 June 2013

Summary

Function: list llJson2List( string src );

This function takes a string representing JSON, and returns a list of the top level.
Returns a list made by parsing src, a string representing json.

• string src

To convert a list into a json formatted string use llList2Json.

Specification

See Json_usage_in_LSL

  • If the json represents a single item (number, string, true, false or null) then a list with 1 item will be returned.
  • If the json represents an object then a strided list of key, value pairs is returned. All values that are objects or arrays are returned as json strings.
  • If the json represents an array then a list of all items is returned. All values that are objects or arrays are returned as json strings.

Examples

See Also

Functions

•  llList2Json
•  llJsonGetValue
•  llJsonSetValue
•  llJsonValueType

Articles

•  Typecast

Deep Notes

History

Date of Release 20/05/2013

Search JIRA for related Issues

Signature

function list llJson2List( string src );