json.type

From RPTools Wiki
Revision as of 10:24, 24 December 2008 by Craig (talk | contribs) (New page: ==Function json.type== '''Introduced in MapTool 1.3b49''' Returns a string which contains the type of Macros:json object that is passed in. Return values are * ARRAY - The object ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function json.type

Introduced in MapTool 1.3b49

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

Usage

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


Examples

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

Returns

 OBJECT
 ARRAY
 UNKNOWN