Converting XML to JSON with XSL – Part 3

In this final installment of converting XML to JSON with XSL I will move outside of the ‘normal’ JSON conventions in order to provide data typing of returned values as well as flattening your resulting JSON for greater efficiency. Although naming conventions like BadgerFish provide for backwards conversion to XML it is often the case that this is not required.  Conventions like BadgerFish also make the assumption that the source of the JSON may ‘not’ be safe and therefore all entities and corresponding values are encased as strings. Continue reading

Advertisements

Converting XML to JSON with XSL – Part 2

In this installment of converting XML to JSON with XSL I will discuss escaping your resulting JSON plus the introduction of a config.xml file to drive your conversion.  The config file becomes a necessity in order to do datatyping and character escaping.  Continue reading