json.fromStrProp: Difference between revisions
Jump to navigation
Jump to search
m (Fixing wikilink) |
True Hitoare (talk | contribs) (Added information about second parameter) |
||
Line 7: | Line 7: | ||
|usage= | |usage= | ||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
json.fromStrProp(propList) | |||
json.fromStrProp(propList,delim) | |||
</source> | </source> | ||
'''Parameters''' | |||
{{param|propList|String property list to extract data from.}} | |||
{{param|delim|Delimiter between fields (default is ";").}} | |||
|example= | |example= |
Revision as of 11:28, 27 November 2011
json.fromStrProp() Function
• Introduced in version 1.3b49
Creates a json object from a string property list.
Usage
json.fromStrProp(propList)
json.fromStrProp(propList,delim)
Parameters
propList
- String property list to extract data from.delim
- Delimiter between fields (default is ";").
Example
[r:json.fromStrProp("a=1;b=44;c=12")]
Returns
{"a":1,"c":12,"b":44}