json.fromStrProp

From RPTools Wiki
Revision as of 10:05, 24 December 2008 by Craig (talk | contribs) (New page: ==Function json.fromStrProp== {{TrustedOnlyFunction}} '''Introduced in MapTool 1.3b49''' Creates a Macros:json object from a Macros:string property list. ===Usage=== <source...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function json.fromStrProp

This function can only be called from a trusted macro


Introduced in MapTool 1.3b49

Creates a json object from a string property list.

Usage

[h: jobj = json.fromStrProp(strProp)]


Examples

[r:json.fromStrProp("a=1;b=44;c=12")]

Returns

  {"a":1,"c":12,"b":44}