json.get: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Applied Template:MacroFunction)
(No difference)

Revision as of 02:09, 9 March 2009

json.get() Function

Introduced in version 1.3b49

Usage

[h: jarr = json.get(jarr, index)]
[h: jarr = json.get(jobj, key)]

Example

  [h:a=json.fromStrProp("a=1;b=44;c=12")] [json.get(a,"b")]
  [h:a=json.fromList("1,44,12")] [json.get(a,1)]

Returns

 44
44