Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples
Videos
New in version: 9.0   9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3    Statistic  

JSON.ToXML

Converts JSON to XML.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
JSON 10.3 Yes Yes Yes Yes Yes
MBS( "JSON.ToXML"; json; RootNodeName )   More

Parameters

Parameter Description Example value
json A JSON text or reference. {"key": "value"}
RootNodeName The root node name to use. "test"

Result

Returns XML text or error.

Description

Converts JSON to XML.
Walks over nodes in JSON and adds them to XML.

This function does not perfectly reverse XML.ToJSON.

Examples

Convert some JSON:

MBS( "JSON.ToXML"; "{\"first\": \"Peter\", \"age\": 38}"; "test" )

Example result:
<?xml version="1.0" encoding="UTF-8"?>
<test>
<first>Peter</first>
<age>38</age>
</test>

See also

Blog Entries

Created 20th June 2020, last changed 20th June 2020


JSON.ToHTML   -   Java.CallObjectMethod

Feedback: Report problem or ask question.




Links
MBS FileMaker tutorial videos