Note that there are some explanatory texts on larger screens.

plurals
  1. PORESTful API service to send plot data. Which "protocol" use XML or JSON?
    primarykey
    data
    text
    <p>I'm developing a platform API with Java and I must choose an exchange data "protocol" to use: JSON or XML. </p> <p>I've been googling for large coordinates representations <a href="https://developers.google.com/maps/documentation/mapsdata/developers_guide_protocol" rel="nofollow">Google maps API</a>, <a href="http://msdn.microsoft.com/en-us/library/ff701710.aspx" rel="nofollow">MSDN bing services</a>, <a href="http://www.w3.org/TR/SVG/coords.html" rel="nofollow">SVG w3.org coordinate system</a> and also checked some interesting stackOverflow posts: <a href="http://www.stackoverflow.com/questions/7823690/are-json-and-xml-comparable">XML vs JSON</a> and <a href="http://www.stackoverflow.com/questions/2737809/restful-api-how-to-model-json-representation">Restful API</a>.</p> <p>All the XML representations I checked used points as a unique element in the xml like this one.</p> <pre><code>&lt;graph label="first"&gt; &lt;point x="11-02-2012" y="4573"&gt;&lt;/point&gt; &lt;point x="12-02-2012" y="2341"&gt;&lt;/point&gt; &lt;graph&gt; &lt;graph label="second"&gt; &lt;point x="11-02-2012" y="3423434"&gt;&lt;/point&gt; &lt;point x="11-02-2012" y="234243"&gt;&lt;/point&gt; &lt;graph&gt; </code></pre> <p>This is a problem for large number of points.</p> <p>Then I would bet for JSON to manage plot data because I've used it to draw that kind of plots using JQplot plugin and it's more comfortable to use an array of points. But the problem here is that all other components of platform API use XML templates. What would be your choice here?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload