This is a comparison of the Parker and Spark convention for XML to JSON mapping. The example uses the XML for Service Discovery:

In addition to the differences noted on the JSON & XML Conversion page, the XSL being used to convert to the Parker convention does not seem to be stripping the root element even though that is supposed to be one of the properties of Parker. The Spark example does do this.

The easiest way to spot the key difference between Parker and Spark is to see how the and child elements are handled in each example. The Parker example demonstrates an internal inconsistency based on the number of elements while it is consistent with the Spark example regardless of how many elements there are.

2011-02-03 14:18 You can email or call for assistance api@mycity.org +1 (555) 555-5555 You can request a key here: http://api.mycity.gov/api_key/request http://wiki.open311.org/GeoReport_v2.1 http://open311.mycity.gov/v2_1 2010-11-23 09:01 production text/xml http://wiki.open311.org/GeoReport_v2.1 http://open311.mycity.gov/test/v2_1 2010-10-02 09:01 test text/xml text/json text/html http://wiki.open311.org/GeoReport_v3 http://open311.mycity.gov/v3 2011-02-03 14:18 test { "discovery":{ "changeset":"2011-02-03 14:18", "contact":"You can email or call for assistance api@mycity.org +1 (555) 555-5555", "key_service":"You can request a key here: http://api.mycity.gov/api_key/request", "endpoints":[ { "specification":"http://wiki.open311.org/GeoReport_v2.1", "url":"http://open311.mycity.gov/v2_1", "changeset":"2010-11-23 09:01", "type":"production", "formats":{ "format":"text/xml" } }, { "specification":"http://wiki.open311.org/GeoReport_v2.1", "url":"http://open311.mycity.gov/test/v2_1", "changeset":"2010-10-02 09:01", "type":"test", "formats":[ "text/xml", "text/json", "text/html" ] }, { "specification":"http://wiki.open311.org/GeoReport_v3", "url":"http://open311.mycity.gov/v3", "changeset":"2011-02-03 14:18", "type":"test" } ] } } { "changeset":"2011-02-03 14:18", "contact":"You can email or call for assistance api@mycity.org +1 (555) 555-5555", "key_service":"You can request a key here: http://api.mycity.gov/api_key/request", "endpoints":[ { "specification":"http://wiki.open311.org/GeoReport_v2.1", "url":"http://open311.mycity.gov/v2_1", "changeset":"2010-11-23 09:01", "type":"production", "formats":[ "text/xml" ] }, { "specification":"http://wiki.open311.org/GeoReport_v2.1", "url":"http://open311.mycity.gov/test/v2_1", "changeset":"2010-10-02 09:01", "type":"test", "formats":[ "text/xml", "text/json", "text/html" ] }, { "specification":"http://wiki.open311.org/GeoReport_v3", "url":"http://open311.mycity.gov/v3", "changeset":"2011-02-03 14:18", "type":"test" } ] }