json.remove: Difference between revisions
Jump to navigation
Jump to search
Verisimilar (talk | contribs) m (Macros:Functions:json.remove moved to json.remove) |
Verisimilar (talk | contribs) m (Correcting JSON Array link.) |
||
Line 3: | Line 3: | ||
|version=1.3b49 | |version=1.3b49 | ||
|description= | |description= | ||
Removes a field from a [[ | Removes a field from a [[JSON Object]], or the value at the specified index from a [[JSON Array]]. | ||
|usage= | |usage= |
Revision as of 00:36, 5 April 2009
json.remove() Function
• Introduced in version 1.3b49
Removes a field from a JSON Object, or the value at the specified index from a JSON Array.
Usage
[h: jarr = json.remove(jarr, index)]
[h: jarr = json.remove(jobj, key)]
Examples
[h:a=json.fromStrProp("a=1;b=44;c=12")] [r:json.remove(a, "c")]
[h:a=json.fromList("a,1,g,4")][r:json.remove(a,3)]
Returns
{"a":1,"b":44}["a",1,"g"]