json.contains

From RPTools Wiki
Revision as of 02:01, 9 March 2009 by Verisimilar (talk | contribs) (Applied Template:MacroFunction)
Jump to navigation Jump to search

json.contains() Function

Introduced in version 1.3b49

Usage

[h: value = json.contains(jobj, key)]

Examples

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

Returns

  1
0