json.length

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

json.length() Function

Introduced in version 1.3b49

Usage

[h: len = json.length(jobj)]
[h: len = json.length(jarr)]

Example

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

Returns

 3
4