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.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3   10.4    Statistic  

XML.ToJSON

Converts XML to JSON.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
XML 8.2 Yes Yes Yes Yes Yes
MBS( "XML.ToJSON"; XML { ; Flags } )   More

Parameters

Parameter Description Example Flags
XML The XML to process. "<test>Hello</test>"
Flags Various Flags.
Add 1 to ignore errors in xml and continue parsing. This may lead to not everything in the xml being read.
0 Optional

Result

Returns JSON or error.

Description

Converts XML to JSON.
For nodes in the XML we create objects and key/values.
Attributes are put in @attributes nodes.

See also

Example Databases

Blog Entries

Release notes

  • Version 10.4
  • Version 10.0
    • Improved CData handling for XML.ToJSON function.
  • Version 9.5
  • Version 8.2

Created 27th April 2018, last changed 27th April 2018


XML.SubTree   -   XML.Validate

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins