MoneyWorks Manual
Edit
!--sphider_noindex-->
JSON_AsXML (jsonString)
Result type: text
Definition: Returns the JSON data as XML data.
Example:
SysLog(JSON_AsXML(`{ "id": 1, "name": "Widget", "price": 12.50, "tags": ["bronze", "medium"]}`)
outputs:
<?xml version="1.0" encoding="UTF-8"?>
<JsonItem type="json:object">
<id type="json:number" name="id">1</id>
<name type="json:string" name="name">Widget</name>
<price type="json:number" name="price">12.5</price>
<tags type="json:array" name="tags">
<JsonItem type="json:string">bronze</JsonItem>
<JsonItem type="json:string">medium</JsonItem>
</tags>
</JsonItem>
See Also:
JSON_AsArray: Convert JSON to an associative array
JSON_Free: Free a parsed JSON structure or reference to a subobject thereof
JSON_GetArray: Return a JSON object as an associative array