Jump to content

[Solutions] fmresultsetjson.xsl


This topic is 2600 days old. Please don't post here. Open a new topic instead.

Recommended Posts

fmresultsetjson.xsl


XSLT to convert Filemaker's REST web-service XML response into clean JSON

https://twitter.com/alantrewartha

2017-03-06

Adapted from the original Six Fried Rice XSLT here http://sixfriedrice.com/wp/products/filemaker-to-json-converter/

Changed:
* single quotes to JSON-standard double-quotes
* removed "fieldDefinitions" block (personal preference)
* stopped every field value being presented as an [ array ] even when not a "repeating field"
* added whitespace escaping code

The white-space escaping code was entirely cribbed from
https://github.com/doekman/xml2json-xslt/blob/master/xml2json.xsl


 

Link to comment
Share on other sites

This topic is 2600 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.