RPTools

Personal tools
From MapToolDoc

json.type

json.type() Function

Introduced in version 1.3b49

Returns a string which contains the type of JSON variable that is passed in. Return values are

Usage

  1. [h: jarr = json.type(val)]

Examples

  1.   [h:a=json.fromStrProp("a=1;b=44;c=12")] [r:json.type(a)]
  2.   [h:a=json.fromList("a,1,g,4")][r:json.type(a)]
  3.   [r:json.type("some thing or other")]

Returns

 OBJECT
 ARRAY
 UNKNOWN