json.fromStrProp: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(Added information about second parameter)
m (Typographical tweaks)
Line 12: Line 12:
'''Parameters'''
'''Parameters'''
{{param|propList|String property list to extract data from.}}  
{{param|propList|String property list to extract data from.}}  
{{param|delim|Delimiter between fields (default is ";").}}
{{param|delim|Delimiter between fields (default is {{code|";"}}).}}


|example=
|example=

Revision as of 12:25, 11 February 2012

json.fromStrProp() Function

Introduced in version 1.3b49

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}