Difference between revisions of "LlJsonValueType"

From Second Life Wiki
Jump to navigation Jump to search
m
m
Line 8: Line 8:
|Return_text=specifying the type of the value at {{LSLPT|specifiers}} in {{LSLPT|json}}.
|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=<div>
|constants={{LSL_Constants/JSON}}
* [[JSON_INVALID]]
* [[JSON_OBJECT]]
* [[JSON_ARRAY]]
* [[JSON_NUMBER]]
* [[JSON_STRING]]
* [[JSON_NULL]]
* [[JSON_TRUE]]
* [[JSON_FALSE]]
</div>
|examples=
|examples=
|helpers
|helpers

Revision as of 12:44, 12 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

Type Flags Value Unicode Integer URL Encoded HTML Encoded Description
JSON_INVALID U+FDDO 64976 "%EF%B7%90" &#xFDD0; Value returned when inputs are not well formed.
JSON_OBJECT U+FDD1 64977 "%EF%B7%91" &#xFDD1;
JSON_ARRAY U+FDD2 64978 "%EF%B7%92" &#xFDD2;
JSON_NUMBER U+FDD3 64979 "%EF%B7%93" &#xFDD3;
JSON_STRING U+FDD4 64980 "%EF%B7%94" &#xFDD4;
JSON_NULL U+FDD5 64981 "%EF%B7%95" &#xFDD5;
JSON_TRUE U+FDD6 64982 "%EF%B7%96" &#xFDD6;
JSON_FALSE U+FDD7 64983 "%EF%B7%97" &#xFDD7;
JSON_DELETE U+FDD8 64984 "%EF%B7%98" &#xFDD8; Used with llJsonSetValue to remove a key-value pair.

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 );