fm-xml2json
An XML Parser that converts XML into JSON on the FileMaker Pro Platform.
As we delved into the world of REST APIs using FileMaker, we stumbled across an issue.
How do we handle XML responses?
When the REST response is a JSON object, we don’t have any issue and can make use of the JSON functions introduced in FileMaker 16 to manipulate that response as we need.
However, we found out during our development of fmapi-aws-s3 that REST APIs can respond in XML.
This was an issue and with any issue, solutions are born.
We present fm-xml2json
.
A FileMaker script which when passed a valid XML string, will covert this string into a JSON object.
Download free over on Github.
I’m a Filemaker developer, I want to learn more about the FileMaker.
Your script really works well! I am going to use it instead of plugins to read xpaths.
To get the values from a json as script-variables, I have created a little custom function JSON2ScriptParameters ( json ; i ; namespace ). You can download a demofile at: https://www.filemakertips.nl/?ddownload=1367
Thanks for sharing your script, really appreciated!
I will use this as a reference. Thank you very much. (Don’t listen to the sarcastic ones.)
I will use this as a reference.Thank you for making it public.