Difference between revisions of "LlJsonValueType"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
{{LSL Function
{{LSL Function
|func_id=|func_sleep=0.0|func_energy=10.0
|func_id=|func_sleep=0.0|func_energy=0.0
|func=llJsonValueType|return_type=string|p1_type=string|p1_name=json|p2_type=list|p2_name=specifiers
|func=llJsonValueType|return_type=string
|p1_type=string|p1_name=json|p1_desc=A string serialization of a json object.
|p2_type=list|p2_name=specifiers|p2_desc=A path to a value in the json parameter.
|func_footnote
|func_footnote
|func_desc=Returns the type constant for the value in [http://json.org json] string indicated by specifiers.  
|func_desc=Gets the [http://json.org json] type for the value in {{LSLPT|json}} at the location {{LSLPT|specifiers}}.  
|return_text=The type of the json value in string specified by specifiers.
|Return_text=specifying the type of the value at {{LSLPT|specifiers}} in {{LSLPT|json}}.
|spec=See [[Json_usage_in_LSL]]
|spec=See [[Json_usage_in_LSL]]
|constants=*[[JSON_INVALID]]
|constants=<div>
* [[JSON_INVALID]]
* [[JSON_OBJECT]]
* [[JSON_OBJECT]]
* [[JSON_ARRAY]]
* [[JSON_ARRAY]]
Line 13: Line 16:
* [[JSON_NULL]]
* [[JSON_NULL]]
* [[JSON_TRUE]]
* [[JSON_TRUE]]
* [[JSON_FALSE]]  
* [[JSON_FALSE]]
</div>
|examples=
|examples=
|helpers
|helpers
Line 26: Line 30:
|permission
|permission
|negative_index
|negative_index
|sort=CSV2List
|cat1=List
|cat1=List
|cat2=String
|cat2=String

Revision as of 22:54, 10 June 2013

Summary

Function: string llJsonValueType( string json, list specifiers );

Gets the json type for the value in json at the location specifiers.
Returns the string specifying the type of the value at specifiers in json.

• string json A string serialization of a json object.
• list specifiers A path to a value in the json parameter.

Specification

Examples

See Also

Functions

•  llList2Json
•  llJson2List
•  llJsonSetValue
•  llJsonGetValue

Articles

•  Typecast

Deep Notes

Search JIRA for related Issues

Signature

function string llJsonValueType( string json, list specifiers );