Difference between revisions of "LlJsonSetValue"

From Second Life Wiki
Jump to navigation Jump to search
(Undo revision 1179796 by Casper Warden (Talk) - BUG-3142 (which seems to have triggered this change) was due to bad JSON input.)
Line 3: Line 3:
|func=llJsonSetValue|return_type=string|p1_type=string|p1_name=json|p2_type=list|p2_name=specifiers|p3_type=string|p3_name=value
|func=llJsonSetValue|return_type=string|p1_type=string|p1_name=json|p2_type=list|p2_name=specifiers|p3_type=string|p3_name=value
|func_footnote
|func_footnote
|func_desc=Returns a new [http://json.org JSON] string which is ''string'' with the value indicated by specifiers set to ''value''.
|func_desc=Returns a new [http://json.org JSON] string which is ''string'' with the value indicated by specifiers set to ''value''.<br/><br/>A special specifier, [[JSON_APPEND]] is accepted which facilitates appending the value to the end of the array at the specified level.<br.>Care should be taken, as if the value at that level is not an array, it will be overwritten and replaced with the array meant for appending.
|return_text=
|return_text=
|spec=See [[Json_usage_in_LSL]]
|spec=See [[Json_usage_in_LSL]]

Revision as of 18:19, 10 July 2013

Summary

Function: string llJsonSetValue( string json, list specifiers, string value );
0.0 Forced Delay
10.0 Energy

Returns a new JSON string which is string with the value indicated by specifiers set to value.

A special specifier, JSON_APPEND is accepted which facilitates appending the value to the end of the array at the specified level.<br.>Care should be taken, as if the value at that level is not an array, it will be overwritten and replaced with the array meant for appending.
Returns a string

• string json
• list specifiers
• string value

Specification

Examples

See Also

Functions

•  llList2Json
•  llJson2List
•  llJsonGetValue
•  llJsonValueType

Articles

•  Typecast

Deep Notes

History

Date of Release 20/05/2013

Signature

function string llJsonSetValue( string json, list specifiers, string value );