json.get

From RPTools Wiki
Jump to navigation Jump to search

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