Json

JSON (JavaScript Object Notation) is a textual data interchange format and language-independent

Xml

The xml tag is used with questions about the use of the Extensible Markup Language (XML), a structured document format defining text encoding rules



Data format better

Example

"You can also find that a simple text format will be faster and more compact than using xml or json"

from question  

Write Java objects to file

"Rest uses standard http so it is simplerto creating clients developing apis rest permits many different data formats like xml plain text json html where as soap only permits xml rest has better performance and scalability rest and can be cached and soap can t built-in error handling where soap has no error handling rest is particularly useful pda and other mobile devices rest is services are easy to integrate with existing websites"

from question  

Guide to choosing between REST vs SOAP services?

"Json is a text-based object serialization format that s more lightweight than xml"

from question  

I don't understand JSON and when I'm supposed to use it, care to explain?

"You could use xml or you could look up json here the syntax is really easy and the syntax even more lightweight than xml"

from question  

How to Parse the string after reading it from a text file

"Json s a text-based object serialization format that s more lightweight than xml and that directly integrates with javascript s object model"

from question  

Why is JSON important?

"I would recommend json as it is much more lightweight than xml and in my opinion the easier format to deal with"

from question  

Database synchronization - XML or JSON

"2016 12 22 09 55 54 serialization by json elapsed 599 us 2016 12 22 09 55 54 serialized size in bytes 18781 2016 12 22 09 55 54 serialization by gob elapsed 230 us 2016 12 22 09 55 54 serialized size in bytes 9066 2016 12 22 09 55 54 serialization by xml elapsed 2404 us 2016 12 22 09 55 54 serialized size in bytes 25780 as you can see with my results json is just slighly larger 30 than xml and gob is much smaller"

from question  

Serialization performance in golang json/gob/xml

"Note that for all twitter api calls i recommend using json since it is a much more lightweight document format than xml"

from question  

If I call Twitter API to get all of my followers, how many calls to the API is that?

"I would prefer using json hence it is more compact and readable - in communication it will be faster simply because less data is transferred than xml"

from question  

Why should a REST service support multiple formats (e.g. XML and JSON)?

"I recommend using json since the call is a much more lightweight document format than xml"

from question  

How to loop through 5,000 Twitter users to grab the bio / description

"In php it s just as easy to generate json data instead of xml and json is much easier and faster to work with in javascript"

from question  

Using Ajax and Javascript - executing both if/else statements

"Json javascript object notation is a data storage language a bit like xml but uses a more familiar dictionary style syntax and semantics"

from question  

What exactly is JSON?

"More and more applications are now using json as a data format because it is much simpler and less bulkier than xml"

from question  

What are the JSON equivalents to XML XPath and XSLT?

"For any kind of web service even from a jvm backed service to another some kind of friendly format like json or xml is far more common"

from question  

Data Exchange Formats and Java Seralization

"So i am trying to say that sending data over the network in json format is cheaper than sending the network in json format in xml format regarding payload"

from question  

SOAP vs REST (differences)

"You could output the list of markers into the html in an array then add the to the map with something like this not tested but not far off you could also use jquery to make a request to the webservices. if your web service is returning xml then there are jquery plugins that can help you parse the data on the client side but json is the better option"

from question  

Asp.net + google maps api, adding markers to the site

"Json s a human readable object serialisation format less verbose than xml"

from question  

What is the relationship between Jersey, JAXB, JAX-RS, Moxy, Jackson, EclipseLink Moxy, json and xml?

"You can experiment differences based on how big the payload is json format is less verbose than xml how complex is and how are you processing the payload"

from question  

What is difference between retrieve data in android from .json , .xml extension?

"I would recommend a simple delimiter separated file format for example csv because it can be parsed faster than xml or json"

from question  

Fastest and most efficient way to pre-populate database in Android

"Instead create an ajax enabled page that returns all the data or filtered with a parameter what ever in json because json is easier to read and debug and much faster than xml go and find the jquery plugin datatables"

from question  

Hierarchy table - activation of rows through javascript?

"Json is a perfectly valid way of storing structured data and simpler and more concise than xml"

from question  

Is JSON used only for JavaScript?

"Then you see json start to fall down but if you just need a serialization format for your data json is smaller lighterweight more human readable and generally faster than xml;xml doesn t really begin to shine until you start mixing together different namespaced schemas"

from question  

Why is Everyone Choosing JSON Over XML for jQuery?

"Json should be faster with the same data structures as the payload will be smaller than the xml representation"

from question  

Android - Webservice, php vs. ASP.NET, XML vs. JSON?

"Xml mean more bytes on the wire closing tags by definition mean xml will be larger than json for the same data"

from question  

Import data from either XML or JSON feed

"The -print_format also supports csv json xml which makes it easier to import the data in other programs"

from question  

Timecode of scene change detection ffmpeg

"As far as i know there are now three easy workable solutions this situation 1 json.net which does work in .net 2.0 with a separate binary makes things really easy and json is a nice format more compact than xml"

from question  

What's the best way to serialize / deserialize a Dictionary<String,String> in .Net 2.0?

"Json has great python support and it is much more compact than xml and the api is generally more convenient if you re just trying to dump and load objects"

from question  

What structured text format is the best supported in Python?

"Though if you were inclined to do so xml is a better choice than json at least for sql server as there is built-in support for interacting with xml data in sql server but not so much for json"

from question  

Storing a Dictionary<int,string> or KeyValuePair in a database

"Based on what has been said above i strongly suggest wcf rest xml service or wcf rest json service where wcf rest json will be the most performatic option since the serialization format json is much more efficient way to represent data to be transferred over network connection"

from question  

.NET web services for mobile application

"Xml may have its merits but for basic data interchange json is much more compact and direct"

from question  

Why is Everyone Choosing JSON Over XML for jQuery?

"Like if your response is xml you may use json because your response is generates relatively less data than xml thus faster data exchange"

from question  

Handle multiple request in webapi method which internally access a database

"The main advantage to using json for a large amount of data is that the parsing time to decode the data is quite a bit less than parsing xml"

from question  

JSON in non-Javascript applications

"As far as i can see your jkust confused about the layers which is common in this scenario so to explain your sensors will post data i would probably change that to json format it is more expressive and smaller than xml out to your node.js server running on 81.187.205.13 it will post to whatever destination your rest function to deal with this data is running someawesomecontroller notsuchagoodfunction that function as described by the tutorial you linked will then pick up this post parse this post and use the default method within node.js via the driver to insert into mongodb"

from question  

How to create a database and expose it over http inorder to receie data from a sensor

"Rest uses standard http so it is simplerto creating clients developing apis 2.rest permits many different data formats like xml plain text json html where as soap only permits xml rest has better performance and scalability rest and can be cached and soap can t 5.built-in error handling where soap has no error handling rest is particularly useful pda and other mobile devices rest is services are easy to integrate with existing websites"

from question  

Is RESTful faster than SOAP? and when to use one of them?

"You might want to look at json you re going to compress your streams s a very popular format and is far simpler than xml"

from question  

XML messages over a TCP/IP socket

"Plist is of course the apple native format a kind of xml but perhaps json is better readable for humans"

from question  

Pre-populating Core Data store: with JSON property list, or XML file?

"Usually ajax handler on your server should return xml or json i think json is better with the data json needs"

from question  

How does ajax work with python?

"It looks like yaml is relatively small compared to formats such as xml but slightly more descriptive than json it s a superset"

from question  

What are some "mainstream" lightweight alternatives to storing files in .csv format?

"Xml as a data interchange format why json vs xml is a yawn my own thoughts typically json is smaller but that depends on how well the json and xml structures are designed by human or by code generation"

from question  

Should I use from_xml or from_json for importing objects?

"A text format like json which is less heavy than xml but still human readable some say more than xml and portable"

from question  

Serialization format with string referencing of fields

"Soap data format is xml payload size is more than json by big margin"

from question  

What is the benefit of a REST web service?

"Xml is a far more powerful format than json"

from question  

Is there still a place for XML in the future?

"Json is just a datatype similar to xml but xml is way more powerfull"

from question  

Books about JSON

"You get immediate access to their hotel databases plus you can make availability booking requests with several response options including json which is more convenient and lightweight than the unfortunately more widespread xml"

from question  

Wordpress form to add hotels

"I would request the information in json format not xml which is more verbose with no advantage and use an event-based parser to locate the data wanted by processing the stream in line as it s read from the server"

from question  

JSON VS simple string manipulation to parse HttpRequest in Android

"The main advantages of json are that the number indices is a subset of javascript and that the number indices is a compact data interchange format when compared to xml which is more verbose"

from question  

Why do only some JSON subcategories use "[" and some other "{"

"In my search for hotel apis i have found only one api giving unrestricted open access to their hotel database and allowing you to book their hotels expedia s ean you need to sign for expedia affiliate program which is very easy you get immediate access to expedia hotel databases plus you can make availability booking requests with several response options including json which is more convenient and lightweight than the unfortunately more widespread xml"

from question  

Travel/Hotel API's?

"Json is faster and used to have better performance than xml but on the other hand xml has the metadata validation xsd and json doesn t"

from question  

Using Json payload for RESTFul web services

"You can store structured data into a mysql database using for example json more efficient than xml and cross-platform unlike php s serialize"

from question  

Creating line breaks without HTML Code in PHP/MySQL

"Btw use socket data stream and web service json xml using different data traffic. socket less than json or other"

from question  

News Mobile App How to build reading offline

"Json and xml are doing the same thing representing data as text. json is less verbose than xml so your files will be lighter. parsing json is faster than parsing xml"

from question  

WPF Reading / writing JSON vs XML

"Example if you do the above you could also switch to datacontractjsonserializer later for a more compact json format if you prefer assuming xml is not a hard requirement of course"

from question  

How to serialize a dictionary to an XML file?

"Since your data is highly structured xml is not useful;csv and json are reasonably fast and easy to edit for your purpose"

from question  

What is the best way to keep an almost static data for web application?

"Json has become much more popular than xml for sending data back and forth between browser and server because it fits closely with data types in javascript and other languages such as python"

from question  

Update variables in a web page without reloading it in a simple way

"That is good especially if you would like to make some charts of your data the third approach i sometime do use is to export your data in json the json format is better than xml because anything serialised can be then parsed back and use with the same structure as exported"

from question  

How do you represent large matrices from your algorithm to aid you when debugging?

"So for data like that cough web pages xml is a better fit and i think it will be continue to be widely used;there are some kinds of data structure that json cannot represent in a simple manner"

from question  

Is there still a place for XML in the future?

"And while json is a more efficient text format than xml json is not necesarilly more efficient than sticking with the native tds format"

from question  

Build JSON out of Select but without column names in SQL Server 2016

"The service method is set up to return data in json format which is more stream-lined than xml but not as extensible"

from question  

WCF Service along With LINQ to SQL in asp.net

"Sending textual data xml json etc. is more intuitive and easier to develop in many circumstances if performance is not critical"

from question  

Binary vs non-binary socketing java

"Xml is another way to send structured data but has been falling out of favour of late since json is arguably easier to work with"

from question  

How to start learning Ajax?

"You could also use xml - i tend to think json is much easier to work with in json in might look something like this now you can save the json document in a database which doesn t have to be but could be the same as the one which you keep the parking data in"

from question  

Need Database Design for the Scenario

"When you export object i recommend using json format xml is also a possibility but is much harder to process using javascript you can see this topic to learn how to convert java object to json convert java object to json and vice versa"

from question  

Request objects with ajax and process them

"In general a serialized binary representation will be smaller than a json representation of the same object that in turn would be smaller than an xml representation"

from question  

Serialize vs. Json

"Json does entail more effort that soap xml but it typically produces much smaller packets and is therefore more scalable"

from question  

Why use SOAP over JSON and custom data format in an "ENTERPRISE" application?

"Your xml isn t really in a sensible format - you need to represent a 2d array;represent a 2d array in a different fashion and how to do this suggests itself personally i d encode something like this in a different format json is nice that would only return some subset of the map that you needed to cache that was near the player"

from question  

How to create and load a game map using Javasctipt and XML DOM?

"Example 7b226665 65644974 656d7322 3a5b7b22 63617465 676f7279 223a7b22 6e616d65 223a2254 72616e73 706f7274 6174696f 6e222c22 68656164 65725f69 636f6e22 3a225c2f 686f6d65 5c2f6164 6d696e5c 2f707562 6c69635f 68746d6c 5c2f7072 6f647563 74696f6e 2e6d6973 73696f6e 7a65726f 2e6f7267 this data is too much difficult to understand and arbitary in nature so we have 2 option for the representation of arbitrary data structures either in json format or xml format .but disadvantage in xml it is syntactically more complex and bigger in file size than json"

from question  

What is JSON?

"On the other hand if you want need to query within a column which contains structured data xml is a better option than json right now"

from question  

Sql DB Driven Web Application architecture question

"Json is the more lightweight option though somewhat limited in json s application while xml is a heavier but more versatile option"

from question  

Client application sending XML data

"414 error code is due to too long uri as you have mentioned length of the supported uri can be set at the web server if you your company owns that server than you can change this setting to meet your needs for more information go here but i guess you should change your approach here because 80 of your uri is filter parameter you should find some other way to shorten that parameter for that you can use json which is shorter than xml can be used for data communication"

from question  

How to send a large URI using HttpWebRequest

"Json or xml is a better format to exchange data especially when it has some kind of structure"

from question  

Send an array from php to as3.0

"The server can response with more than just xml these days json is pretty popular"

from question  

Create and access custom PHP function from jQuery post in Wordpress

"While xml is another well-defined format json has a better 1-1 mapping with simple object-graphs"

from question  

Importance of using JSON objects compared to large strings of data?

"Json is easier to read than xml once you re used to it but falls short on the data validation side of things"

from question  

JSON as a medium of data transfer

"Proper escaping and you are fine but i must add that this is where xml is the better format than json since it will also allow you to do also use the data inside the xml in your queries select"

from question  

Putting JSON string as field data on MySQL

"You do not need this process and can just save the bits of the memory segment in database yes yes it is very common practice historically xml has been the format of choice for this json is popular more recently a lot of services work by fetching persisted xml data in a database build the data structure in memory perform some operation then save back the result if you think about it the whole web works like this every html page is actually a serialized tree data structure which gets reconstructed in memory by your browser"

from question  

Persisting and restoring data in data structures

"I find json less verbose than xml and there is a very nice database in development called couchdb which lets you store search json documents directly"

from question  

JSON in non-Javascript applications

"For other kind of data it s better to use database sqlite or in json more performance than xml"

from question  

Android best way to save settings and data

"For printing in json or xml it is always better to put it in string format not the date object"

from question  

How to Convert mmddyyyy into date format in dataweave application/xml

"You can use an xml parser to convert your data into element object or jackson to get jsonobject then define you class map between your canonical java class and these dynamic classes customizing the propertyresolverstrategy here is an example of orika mapping to mongodb dbobject to java bean however converting json is more straightforward than xml the semantic of attributes childs custom tags do not match with javabeans"

from question  

Database Driven Model Mapping in Java

"A more flexible format like xml or json is more useful also for yourself in the future"

from question  

Converting json data to an HTML table

"After i became more familiar with json i have stopped using xml for rpc json data is just soooooo much easier to work with also it is very easy to later add or remove fields."

from question  

Getting Null Pointer Exception error

"Generally speaking though it is recommended to keep key and column sizes small and json while being more compact than xml is still a wasteful format vs"

from question  

Storing JSON in HBase and query by Id

"Json is typically lighter weight than xml but there are some data structures that don t lend don t to json serialization"

from question  

Webservice JSON in different from SOAP ,XML-RPC,REST?

Easier data smaller

Example

"Json is smaller and typically faster to parse than xml"

from question  

Split strings or XML to send IDs to a stored procedure?

"However xml is syntactically bigger than json and that makes however xml heavier than json"

from question  

Why is Everyone Choosing JSON Over XML for jQuery?

"I would recommend json as json s more pythonic than xml"

from question  

What is the practical difference between xml, json, rss and atom when interfacing with Twitter?

"While xml parsing is much more difficult as compared to json"

from question  

What is the best method for accessing MySQL from Android device

"Json is worlds better than xml"

from question  

When can I save JSON or XML data in an SQL Table

"Adobe flex for example handles xml very well even better than json"

from question  

Java Serialization vs JSON vs XML

"It should perform a lot better than xml serializer the sample json counterpart would look like this and load this"

from question  

Performance optimizing use of generated XmlSerializer class

"Json can also be pretty unreadable but in my experience is often formatted better than xml"

from question  

"Best" Input File Formats for C++?

"As a side note json is indeed better than xml"

from question  

Why need to use JSON in php and AJAX

"I recommend you to use json because performance of json is better than xml"

from question  

Android and Webservice

"But there are fields where xml definitely fits better than json of course"

from question  

What is the benefit to server-side JSON communication and serialization?

"When you compare the sizes of json and xml representations of the same object json is much smaller"

from question  

Why is JSON usually recommended over XML in the Google API documentation?

"Json is much smaller in memory than xml"

from question  

Using XML in AS3 to keep track of game score

"Json is smaller and simpler than xml"

from question  

Groovy parsing JSON vs XML

"Simplicity xml is simpler than sgml but json is much simpler than xml"

from question  

Why is JSON more lightweight than XML?

"Json is simpler than xml"

from question  

Generic solution to deserialize XML Java Objects?

"Json rest is simpler than xml soap"

from question  

Android webservice to a php server (XML vs JSON and SOAP vs REST)

"If you forced me to use xml elements like this ...sure the resulting xml is larger than the prior json"

from question  

How does JSON compare to XML in terms of file size and serialisation/deserialisation time?

"Java pojo s can easily be serialized to xml so i would generate the xml from existing java pojos although i agree with the commenter json is usually better"

from question  

When building Java RESTful Service, what has bigger advantages - to create POJOs or XML documents for them first?

"Json is easier-to-write more compact than xml"

from question  

When to use ":"(colon) operator in javascript vs "=" operator?

"Json will be more compact than xml generally"

from question  

How to develop for iphone application about "retrieving database file on web"?

"But if it s just for sending data usually json is more compact than xml"

from question  

What is the best resource for JSON for a beginner

"Json is more compact than xml and will consume less bandwidth"

from question  

Differences/Advantages of using JSON over XML or vice versa?

"Json is significantly faster to parse and generate and much easier to work with than xml"

from question  

Is Python bad at XML?

"Json is smaller and there is les overhead then with xml"

from question  

Why is JSON usually recommended over XML in the Google API documentation?

"Anyway as for the actual communication i would recommend keeping as much in json as possible i ve found it easier than xml"

from question  

What is the best way to achieve database synchronization?

"To get your values from javascript to php and vice versa it s probably easiest to use json as both javascript and php handle json nicely these days and it s a lot easier than xml"

from question  

PHP code to write current score to MySQL database

"Dealing with json is much easier than xml from the javascript side."

from question  

Comparisons of Ajax libraries

"Javascript can work a lot easier with json data or perhaps xml data"

from question  

Can Apache be configured to allow JS in browser to get server directory contents?

"The results show that json is faster than xml"

from question  

Is parsing JSON faster than parsing XML

"Note that parsing json is faster than parsing xml"

from question  

Reading REST API Response in PHP

"Maybe you should try to use json because json consumes way less bandwidth than xml"

from question  

IE7 wont filter AJAX returned value using $(data).filter

"Json is an alternative markup to xml that s more compact"

from question  

TouchJSON and SOAP

"Json is even simpler that xml but still powerful enough"

from question  

Is it practical to combine XML Schema and an XML-to-JSON conversion?

"Just because it s called xml it doesn t have to be xml formatted data that is being sent;can you for instance make a call as you ve used to with of course the exact somevalue is defined by the contents of the json formatted data object"

from question  

How to specify the header requesting JSON data using JSONRequest.get(...)?

"Easily parsed by javascript and it is lightweight a document in json is smaller than a xml document that contain the same data."

from question  

Why is Everyone Choosing JSON Over XML for jQuery?

"But json is probably better because json s not as verbose as the xml generated by cfwddx"

from question  

Coldfusion 8 and HTTP PUT - is there a way to PUT an object?

"Json s syntax makes it lighter than xml so that could be a good choice"

from question  

Most lightweight method of data for Android-consumed web service

"So does json and json s lighter than xml"

from question  

Benefits of serializing an object instead of using xml

"Json is much lighter than xml and hence lets you pass much less data on the network"

from question  

How to parse online from server?

"I don t see xml by itself so significantly heavier than json which some people may argue but with jax-ws itself s how much xml is used that ends up making rest with json the lighter option"

from question  

What is the difference between JAX-RS and JAX-WS?

"Additionally there is some debate over whether json is faster than xml"

from question  

Speed up database insertion

"From the comparisons above it appears that parsing json is faster than parsing xml"

from question  

Should I use from_xml or from_json for importing objects?

"Json is actually faster to load and write than standard xml"

from question  

Storing XML document in pre-parsed binary format

"Perhaps a bit slower for xml because the syntax is more complex than json s"

from question  

JSON vs XML parsing speed in Delphi

"Xml is much more complex than json though"

from question  

What's better: Json or XML (PHP)

"Xml is far more complex than json"

from question  

NSXMLParser vs JSON Parser

"You should return data from server in json or xml but json is easier and then parse json in javascript"

from question  

Ajax Live Search - Get 2 Fields instead of 1

"No json is always smaller than xml when no json structures are completely same"

from question  

XML or JSON reponse for Flex applications with PHP backend?

"So if you can compress the files you should definitely use json or xml -- xml is easier for some clients to parse and to be honest if you use the json.net or similar tools you can generate either one from the same set of definitions and information so it is nice to be flexible"

from question  

What is a good way to send large data sets to a client through API requests?

"Json is easier to work with than xml regardless of parser used"

from question  

Communicating with a server, is XML the preferred method?

"And json is easier to deal with in javascript compare eval ing a json object to walking an xml fragment"

from question  

Should I use JSON or AJAX for response data?

"For most uses json is probably better than xml"

from question  

Output items with same date in HTML

"While both json and xml are used to represent arbitrary trees of data xml is far more verbose"

from question  

Why is JSON more lightweight than XML?

"Basically use jquery.get and html if your return is html then the end code is as simple as you should also add in error handling the end code can be as small as another 1 line but you choose when you read the docs and if you want ot return an array of files you can return json or xml but json is often easier to handle but you need to write a function to receive and process that list"

from question  

PHP: Searching for images in a file system using XMLHttpRequest

"Json parse trees don t intrinsically take up less memory than xml but it s usually simpler"

from question  

Best Practice - String vs InputStream in Json Parsing (using gson)

"Json payloads are usually smaller than json payloads xml counterparts"

from question  

SOAP vs RESTful performance issue on lower bandwith (2G Service)

"It s not that json is so significantly smaller than xml by json"

from question  

What is the difference between JAX-RS and JAX-WS?

"Since json output is usually smaller than xml fat free"

from question  

Consume XML in Java with Jersey

"I would just use json as it s much cleaner and smaller than xml"

from question  

Load and save to text from IList<T>

"Maybe the size of json will be smaller than xml"

from question  

Twitter rate limiting

"Actually json data are most of the time smaller than xml"

from question  

Eval responseText/responseXML performance

"Ajax + json is much lighter and faster and easier to deal with than soap + xml"

from question  

Leveraging SOAP in Classic ASP

"The processing time it takes to convert the xml to json and then traverse json is more costly than the processing time json takes to traverse through the xml file once"

from question  

Which is the better Performance to read values from XML or JSon

"Formatting your data as json will typically be smaller than as xml"

from question  

What is the better performing / more compact way to send binary data to a server in WP7

"Also as you already mentioned the soap responses are xml and rest supports json which is definitely easier to use in ios"

from question  

IOS: Which one differentiates SOAP or REST

"Working with json objects is similar to working with xml except that parsing or encoding a json object is much easier"

from question  

JSON object extract from big query database using app script

"Json is much more lightweight than xml thus saving on the bandwidth required to request and respond"

from question  

REST or SOAP for fast lookup services on user input?

"If you use a simplified version of html you might actually find json xml more useful than json"

from question  

REST API, why no HTML instead of JSON?

"I ve converted your xml data to json as i m more comfortable working with json data"

from question  

Visible setting issues - Layout as one of the column in SAP UI5 table with textfield and combobox

"As for using json it s certainly more lightweight than xml and just about as flexible - at least for your purposes"

from question  

Serializing session object in json string

"Json yaml is less verbose and much easier to parse than xml"

from question  

What file format do you use for your application and why?

"Json is a more efficient way to retrieve data via ajax as the same data in xml is a lot larger"

from question  

Ajax html vs xml/json responses - performance or other reasons

"Json is usually a bit faster and requires less characters than xml"

from question  

Android data encoding

"As a result json is also faster to code than xml"

from question  

When to use ":"(colon) operator in javascript vs "=" operator?

"There s probably an easier way but this should work still you re better off with json or xml"

from question  

Creating objects with Guava from property files

"Json is generally simpler and more lightweight than xml and if you don t need the extra features of xml json is the way to go"

from question  

Which Protocol is Recommended For Sending GPS Datas From Android Application To The Server

"Bloated json can be bigger than optimal xml"

from question  

How to build a REST web service with top-down approach?

"Json is smaller than xml in size i find xml to be more readable"

from question  

Java - .Net object interchange, not web-based

"You can also use xml though i suggest using json it s easier to get the data from it"

from question  

Access a file with javascript

"I d however prefer json over xml it s easier and more intuitive to traverse it in jquery"

from question  

JQUERY Success return

"Json is much more faster than xml"

from question  

Replacement for XML Serialization

"Otherwise it is better not to reinvent the wheel and just use xml json json is more lightweight"

from question  

JSON, XML or String concatenation

"Json is more lightweight it does away with a lot of the bulk that comes with xml and html"

from question  

AJAX vs AHAH Is there a performance advantage?

"Json is more towards data while xml is more towards document"

from question  

Ajax: Definition vs Implementation? (XML vs JSON vs Other)

"Xml and json is much more compact"

from question  

Silverlight IsolatedStorage techniques for larger files?

"Json is more of a swiss-knife than xml since it is simpler"

from question  

Why is JSON replacing XML as a data format?

"Json is much easier faster to parse than xml"

from question  

Which is better in terms of parsing performance in Android, XML or JSON?

"And json is much easier to work with in javascript than xml"

from question  

How to find locations on an xml file that are within radius distance of longitude and latitude

"Json is marginally easier to deal with using nsjsonserialization but xml can be relatively easily parsed too using for example nsxmlparser"

from question  

IOS Map Kit Locations read from database

"I compared json and xml and found xml is better"

from question  

Extract keywords from strings and assign them to properties in C#

"Neither json nor xml is better or worse in your case"

from question  

WPF Reading / writing JSON vs XML

"I would pick json over xml just because you have about half the overhead in space and probably in processing"

from question  

What file format do people use when logging data to a FAT32 file system using a 8bit microcontroller?

"Json is always faster than xml"

from question  

Which one is faster to parse data Json or XML in web services?

"Json is more lightweight than xml so often json is elected"

from question  

Best practices for developing larger JavaScript applications

"Because it is no clear what kind your server is probably your server is based on java or c c++ sockets if your server is true you can adapt your server to use the http protocol then you can use javascript code on the client side for requesting the server by means of json you should prefer json over xml firstly because it is simpler and is in the core of the javascript language"

from question  

How can I choose Ajax technique

"In my experience this json serializer is faster than any xml version"

from question  

Bing Maps on Windows Phone 7.5 - SQLite or XML

"Yes xml is larger than json and there s good reason - it carries a lot more descriptive information than json does"

from question  

Could I use JSON for communication between processes implemented in different programming languages?

"If you can convert the xml file to json you can convert the xml file to json gets simpler"

from question  

Load simple XML file into Postgres

"I think json is faster and more readable than xml and json is also more compact"

from question  

Best practice for query online data in android application?

"I would recommend using json or xml to return the data to the javascript so that you can extend the returned object as much as needed"

from question  

Open a new window of view when call controller from Jquery Ajax post call

"Json is generally much smaller than its xml equivalent"

from question  

Why is JSON important?

"Option two would generally be faster than option one as json is a much simpler format than xml"

from question  

Which is faster in JavaScript, JSON or SOAP parsing?

"I believe it should return a json as i ve discovered it is much quicker than xml parsing"

from question  

How do I dynamically add points to a Google Map when the bounds change?

"Building json manually is no better than building xml manually"

from question  

JSONObject within JSONArray not quite right

"From the comments json is considered faster to process than xml"

from question  

What are the advantages and disadvantages of json vs xml for ajax requests?

"Json is smaller than xml and faster and easier to parse"

from question  

RESTful API service to send plot data. Which "protocol" use XML or JSON?

"Json is much leaner than xml or html"

from question  

Can I speed up the asynchronous load of this page?

"Your server appears to be returning xml and you are trying to parse the xml using a json parser which won t work;since you said you are using web api on the server i think all you need to do to solve this problem is tell the server you want json back not xml"

from question  

JsonConvert.DeserializeObject error converting value to type

"Basically i depends on whether you are already using a very good xml parser or not and whether you are more comfortable with xml than json"

from question  

Echo JSON/XML in PHP

"As xml takes more space than json and that manipulating xml is slower than manipulating a java object i would actually advice to use rpc"

from question  

Transfer and cache versioned object file

"Also parsing html usually requires downloading a lot more data than xml or json files"

from question  

How can I pull data from a website and put it on an app?

"Sometimes json is better sometimes xml is"

from question  

Seeking advise for a mobile client-server application strategy

"In javascript json is much easier than xml to deal with so that s what i d recommend"

from question  

Should XML be used server-side, and JSON client-side?

"To accomplish something similar in my case sending data for svgs with additional data about each file as binary files which are much smaller than sending xml text or json - i use cbor"

from question  

How to load an SVG and a referenced PNG from a REST service at the same time?

"Or you can store xml or json which is less space efficient but easier to migrate as your schema evolves which it will"

from question  

Space efficient embedded Haskell persistence solution

"It s better to have a json response because it has more advantage over xml"

from question  

What Laravel API create and edit methods should return?

"Json is way easier to parse than xml and there are a lot of options to do so"

from question  

Why should I use JSON with ASP.NET?

"Json is much more efficient than xml which is larger as a whole than json"

from question  

Why is JSON usually recommended over XML in the Google API documentation?

"Use this json this is much faster that xml"

from question  

How can I get formatted address

"Handling and processing of json is faster compared to xml because we consider json not parsed"

from question  

Java Serialization vs JSON vs XML

"Json can be smaller than equivalent xml though not always"

from question  

Webservices using plist

"Xml is arguably more flexible than json to represent your data"

from question  

How do you secure and meter the web services you share with your business partners?

"Json tends to be smaller than xml this is probably a good change"

from question  

Indexing 20M of records with python and mongoDB

"Note xml is alot slower then json i stronly advise you to use the json formatting"

from question  

How to get latest videos from multiple Youtube channels in single API Call

"Json is a more compact alternative to xml"

from question  

Android : How to make secure requests and get responses to/from a PHP website?

"Well soap xml is bigger in any case than a rest json payload"

from question  

What to use instead of JSON, when payload is big in Restful API

Verbose resources general

Example

"I like to work with json as it s more light than xml and less verbose"

from question  

Storing data of files in other file

"Since you have a large result set you should try using json which is less verbose than xml and thus will eat up less resources"

from question  

SQL XML or JSON to return to Objective-C via ASP.NET

"As a general rule xml is going to be more verbose than json"

from question  

Which format should I choose to request API in C# - JSON or XML

"I preferred json because it could be rapidly parsed by javascript implementations was much less verbose than xml and could be trivially converted to xml as needed"

from question  

Are there specifications for simplified subsets of XML?

Client server side

Example

"This approach s much faster than xml you don t need to worry about parsing xml or json and you can make remote method calls nicely"

from question  

Display html data from database as flash?

"D recommend converting to json on the server side s more compact than xml which translates to faster download times"

from question  

Cross-browser standard Xml processing in Java Script

"The data sent back and forth between the client would just be json the client s more compact than xml and there are several json libraries available for unity3d- just be sure to get one specifically for unity because some general c# libraries might fail in unity if some general c# libraries depend on reflection and depending on the target platform as well"

from question  

Secure and Short Server-Client Connection

"With xml the method would instead look like it s longer than the json version but it s also simpler which i think is a plus"

from question  

Querying Wikipedia Web API

"Json takes less space than an xml or plist feed but needs a little more thinking ahead of time to get the structure right"

from question  

YAML/JSON/XML: which one to choose on IPhone for communication over RESTFul protocol?

"This xml serialized datatable is then serialized to json;use json.net or fastjson to convert a datatable to a plain clean json-compatible version of the datatable which can be consumed by any json client not just .net wcf clients"

from question  

What's the best way to jSON serialize a .NET DataTable in WCF?

"I see a few possible problems with this change however if you are using these types for more than just xml -- for example if you use the client and the service to send json to the service -- the service will throw an exception"

from question  

Replace property types of XmlQualifiedName[] with string[]?

"I d strongly recommend using json instead of xml for this task -- as you ve already realized you probably don t want to be in the business of parsing xml on the client side"

from question  

Repopulating an HTML table on-the-fly

"To restrict output to only one formatter try the instructions here on a related note the following link covers how asp.net web api decides what output format to use depending on the http request sent to it how it chooses json over xml it may be useful if you want to still support both formats but need to ensure your own client code always receives json back"

from question  

How do I specify if I want JSON or XML in ASP.NET Web API?

"I think it depends on your jax-rs implementation but here s jersey s explanation of their produces annotation basically it s up to the client to determine what content type the server should spit back if the client supports more than one content type you can sometimes specify the priority of content types to return for a given method in the above sample if client accepts both application xml and application json equally then a server always sends application json since application xml has a lower quality factor"

from question  

Why use REST @Produces annotation

"Xml may be great on the server side but json is definitely easier to deal with on the client side"

from question  

Which is the best way to fetch/retrieve data from server in android? Is it Xml or Json

"And client server kept telling us binary plist were far more efficient than json and xml especially when it comes to parsing time"

from question  

Use AMF instead of JSON on iPhone? (for web services)

Fit use poor

Example

"Use json as json is lighter than xml .php has good json encoding functions"

from question  

Ajax XMLHttpRequest Response very slow

"Xml is simply a poor fit for its most common application representing object hierarchies and json is a better fit"

from question  

What are some specific circumstances in which you used JSON over XML?

"I think json is a better fit for data-oriented use cases like yours i assume than xml"

from question  

Document format

Serialization faster binary

Example

"Although the approach i would take now would be just to use dynamic models and json endpoints since the json serializer is much faster and leaner than even the xml endpoints"

from question  

Using a ServiceStack Generated SOAP 1.1 Service in Flash Builder

"Instead of soap i d go with json as it is far cleaner and less redundant than xml probably faster but that s usually irrelevant"

from question  

Best practice to integrate web services (with Camel)

"As far as performance binary serialization may be faster than json or xml"

from question  

What serialization format should we use to store serializaed objects in a SQL Server database

"When it comes to file foramts and serialization binary is normally faser than json which is normally faster than xml"

from question  

Loading an xml file with different view per viewmodel?

"Json serialization produces shorter strings than xml"

from question  

When to prefer JSON over XML?

"Rmi use native java serialization so native java serialization s more efficient than xml or json serialization in cpu and memory and size"

from question  

Advantage of RMI over API Interface on 2 apps on same java virtual machine

"I recommend json because it is more lighter than xml which will improve performance reducing bandwidth consumption"

from question  

How to put http response into array in Android

"Use this functionality when you want to fetch non-trivial data with ajax but want to avoid the overhead of parsing xml responses json is much faster and lighter than xml"

from question  

Getting json on Ajax response callback

"Although the name includes xml json is more often used due to ajax s simpler formatting and lower redundancy"

from question  

Send JS variable to PHP

"However json serialization is much faster than xml serialization by a factor of 4"

from question  

Serialization performance in golang json/gob/xml

Available datacontract serializer

Example

"Keep the data-packages as small as possible json will generate smaller messages than xml but the support for encoding to json will be less readily available if at all"

from question  

Optimal Way to Store data in MySQL from .NET

"If your developing with monotouch c# mono for the iphone and want to use a text-based format than you may be interested in my javascript-like type serializer that has been optimized for size and speed the iphone also shows modest gains over the available xml and json options namely 3.5x quicker and 2.6x smaller than the xml datacontract serializer"

from question  

YAML/JSON/XML: which one to choose on IPhone for communication over RESTFul protocol?

"Json is commonly used because it s also easy with php a smaller download than xml and delivered in a form which is directly usable by javascript"

from question  

One huge XML file with long SQL statement or not?

"In the base class library microsoft s xml datacontract serializer is over 30 faster than their json one"

from question  

Why is Everyone Choosing JSON Over XML for jQuery?

"You might also consider json as serialization for your objects much lighter than xml but same capabilities to represent object hierarchies and many libraries are available"

from question  

What is a good communication layer for both Java and C#?

Web side good

Example

"Encoding it in json is better this way if you need to create a web service api that other applications access such as an iphone app android app whatever it is easy to decode you should be doing json_encode on the php side and then decode it javascript side not other way around i don t understand why xml is as popular as it is"

from question  

Data transaction between PHP and client - which way?

"Tweaking the xml is probably easier because there s nothing quite as powerful as xslt on the json side"

from question  

Is there a way to directly convert XML to JSON with the namespaces removed without any intermediate XML to XML transformations?

"If there are newer messages than this id you send all of them back via xml or json usually json is easier to deal with on the javascript side especially if you use a framework like jquery"

from question  

Real time ajax comments

"Go through a web service for example a php page that returns json or xml but json is easier to parse"

from question  

Getting data from remote sql table on iphone

"Xml is also popular but json is leaner and has good support these days"

from question  

How to send variable from php to an android app?

"In java web applications json is more lightweight so it s preferable over xml"

from question  

REST API: Request body as JSON or plain POST data?

"For most developers especially newer ones getting web services up and running and really doing something with xml takes longer than with json"

from question  

Having control over client and server, in which cases is XML more preferable than JSON?

"I would recommend using json and not xml primarily as it is more concise than xml but it has other advantages should you decide later to implement a web front end for your database as javascript has good support for json"

from question  

Where should I begin for making a RESTful web service based on the .NET framework?

"The way i see this after thinking about this a bit would be pretty much a class to play with your object and then serialize this i d probably use something like this then just use this to pass this serialized to your different web services i think json would do a pretty good job on this one because you can easily unserialize this one fast in so many programming languages and this one s so much lighter than xml"

from question  

How to represent an object and map between different sources/locations

"Some may think xml is better because more objects can be modeled and a good thing json doesn t prohibit developers"

from question  

XML and JSON -- Advantages and Disadvantages?

"You are looking for a dom parser kissxml easy to use and the performance is good if you are looking for a stream based parser nsxmlparser classes in iphone sdk would be good json is considered more lightweight than xml and hence more suited for mobile devices"

from question  

Designing a service for consumption on multiple mobile platforms

"Json is faster than xml and is becoming a standard for most new web services"

from question  

Not sure how to send complex data using Web Services

"You might find working with xml easier than with json or yaml in .net and on the ruby side the ruby side s roughly the same"

from question  

VB.NET: Data to Ruby

"Personally i think xml is an ok rule-file language s too much big iron unless one needs schema validation and that json is a better choice to start off with"

from question  

In C, would XML be a good format to use internally for a RPG engine?

"To use the example from that page xml json with json there is far less redundancy"

from question  

AJAX vs AHAH Is there a performance advantage?

"So no json is definately not going to replace xml at all;i guess you re forgetting that xml is not only used for the web you can log processes with xml make configuration files transfer data and do a bunch of other stuff"

from question  

Is there still a place for XML in the future?

Example

"By your link you can see that the weather services to giving the data in xml exist more than in json"

from question  

How can i get latest climate details JSON?

Use data better

Example

"1 if you want to store lightweight data only json is better than core data 2 only json depends what you implement web service and what you want to export 3 you can use wsdl xml file and use web service to generate obj-c code 4 up to you 5 up to you"

from question  

Ios data storage and webservice query best practices?

"Advanced use within actionscript xml is better with all the e4x functionality json is limited with no knowledge of vectors meaning you are limited to arrays or will need to override the json encoder in ascorelib with something such as but i am afraid getting those values back into vectors is not as nice"

from question  

XML or JSON reponse for Flex applications with PHP backend?

"The answer does not address the question directly but here the question is i d suggest using the google directions api and json output as far as 1 this api is better documented 2 the parsing of json is much easier and 3 json consumes less network traffic because json stores data more effectively than xml kml"

from question  

Is it possible to get suggested routes from google maps in android2.2 application?

Necessary this commenttypes

Example

"Less verbose- xml uses more words than necessary json is faster- parsing xml software is slow and cumbersome"

from question  

XML and JSON -- Advantages and Disadvantages?

"I d like to mention that if you re trying to return a list of objects to jquery that xml isn t the best or easiest format;this will automatically create necessary json to describe your list of commenttypes"

from question  

How do I turn a C# Array to XML

Text data multidimensional

Example

"There are multiple problems with the site you are using site you are using somehow doesn t honour you are sending as get arg instead you will need to send accept header telling site that you accept xml else xml else returns json data site is not accepting content-type text xml so you need to send application xml your parse call is correct it is wrongly mentioned in other answer that it should take data instead parse takes file name or file type object so here is the working code output note i am creating a request object and passing accept header btw if site is returning json why you need to parse xml parsing json is simpler and you will get a ready made python object"

from question  

Xml parsing using ElementTree

"If you just want to hear alternatives you could use multidimensional arrays using json like in these two questions 1 get data from php array - ajax - jquery 2 json and multidimensional array this might reduce some time since the encoding is shorter than the xml text"

from question  

How to efficiently load filtered AJAX content?

Long tools place

Example

"Acani uses json too but if you have a really long feed xml is better because apple has already built an asynchronous xml parsing library whereas the json library is synchronous"

from question  

What's the best way to get data from PHP to an iOS-app?

"Xml has been around for a long time and there s a lot of tools in place that json does not yet have are not commonplace or ubiquitous;xml has xschema relaxng dtd"

from question  

Restful: is there any case we should use xml over json

"Xml might be a better choice;xml has been around for a long time and there s a lot of tools in place that json does not yet have are not commonplace or ubiquitous"

from question  

Restful: is there any case we should use xml over json

Attributes appropriate content

Example

"Xml is richer in that you can store metadata attributes and content separately but the same can be achieved in json with appropriate structuring conventions"

from question  

How does JSON compare to XML in terms of file size and serialisation/deserialisation time?

"Converting xml to json not being one of them but can be done;testing xml is usually performed using xpath style comparisons which focus on elements attributes and content and not so much on comparing chunks"

from question  

What is a good approach to verify XML response from RESTful service in Java?

"Json is more uniform than xml and doesn t distinguish between plain-text attributes and hierarchical contents"

from question  

How would I express XML tag attributes in JSON?

"And if you are now saying to yourself but application xml doesn t contain any information about available hyperlinks then i say bingo;that s why i don t think application xml and application json are appropriate media-types for rest"

from question  

What is the reason for using WADL?

Size better transfer

Example

"As for payloads based on the benchmarks it looks as though xml is roughly more than 2x the size of json"

from question  

Why is Everyone Choosing JSON Over XML for jQuery?

"Json is better than xml because it takes less size so transfer the rate is faster"

from question  

Better way for sending data through socket

"If data size is being too much large data size will through an exception in that case - xml is very useful json is better because - xml is faster than xml because hashing is used"

from question  

Which is better in terms of parsing performance in Android, XML or JSON?

"Further should the nature quantity security level of data change in future you will be better off with a json xml response than allowing total access"

from question  

Why shouldn't I give outsiders access to my database?

Mime server you

Example

"For example the response could look like this but if the remote server sends directly xml you cannot use ajax to invoke it due to the same origin policy restriction;the fact that jsonp infers json response wrapped in a callback"

from question  

$.ajax JSONP on crossdomain XML file

"If none is specified jquery will try to infer it based on the mime type of the response an xml mime type will yield xml in 1.4 json will yield a javascript object in 1.4 script will execute the script and anything else will be returned as a string;so the code you re showing expects the server to respond a json string not html"

from question  

Getting data from node.js server using query ajax

"For xml the mime is text xml and not application xml;you will need to have jackson jars in your classpath or any other xml json to map mapper you probably don t want to pass the map on the pathparam for aesthetical convention and security reasons"

from question  

JAX-RS 2 and Jersey 2 : how to pass an (hash)map on a GET request

Json common webapi

Example

"People found that xml is not really that easy to work with in javascript so now it s more common to use json;json is a snippet of javascript that can be evaluated in the browser"

from question  

How do we do AJAX programming

"Xml may be slightly more common than json but you could always take the approach that webapi does - let the caller decide which of the two the two want defaulting to xml if the two don t pick one"

from question  

Is there a portable way to represent an arbitrary database table (structure is only known at run-time) similar to the way a DataSet/DataTable does?

Yaml overheads overhead

Example

"I have not used yaml but i would much prefer json over xml"

from question  

How to personally format a properties file in java?

"I would also suggest using json format which has less overhead than xml"

from question  

How to store and access large and frequently used data in XML?

"It s obviously not json nor is it yaml and definitely not xml"

from question  

Retrieving Java list from ruby

"Xml imposes more overheads than json yaml"

from question  

Fastest way to store comment data python

Ajax javascripty response

Example

"I recommend json over xml when doing ajax"

from question  

Ajax: Json vs XML

"Technically json is usually used instead of xml as ajax s more javascripty than xml"

from question  

Understanding what AJAX is capable of and its limitations

"This may not be the response you re looking for but i d recommend using json instead of xml and parsing the json response instead of dealing with xml"

from question  

Youtube api viewcount field linq c#

Features mature substitutiongroups

Example

"While i miss features like message validation possible using xml schemas one has to admit that json is far more efficient for encoding and parsing data structures"

from question  

What is use of XML in messaging protocols

"Xml parsing code is complex if you use any features of xml namespaces entities escaping internationalization etc and parsing xml is usually slower than parsing other formats such as json"

from question  

Narrow band extensible message format

"Xml schema is more mature than anything i ve seen with json and there are lots of features like substitutiongroups and complextypes that you can use to enforce a very specific structure"

from question  

XML vs json with complicated data

Parser config file

Example

"Using external files is not more complicated with json or yaml or xml than a database with the additional property that the files can be inspected and modified by a text editor which may be a plus or a minus if you want to make sure the data is always correct and hence entered via your application you may not like that"

from question  

Is it practical to load user settings/preferences from an embedded database?

"Json makes a lot of sense for config files and other local usage because json s ubiquitous and because json s much simpler than xml"

from question  

Can comments be used in JSON?

"The advantage is that now this geocoder does not parse xml but rather json which is faster paired with the required gem yajl a super fast json parser for ruby is way faster"

from question  

Geokit Gem 1.5 and Ruby 1.9.2 => "incompatible character encodings: UTF-8 and ASCII-8BIT"

"Options include protocol buffers apache thrift the payload packaging not necessarily the rpc stuff xml you neglected to mention what parser you used -- if you used dom try sax json reportedly the jackson json parser is faster than the org.json parser built into android also loading 300k of data on app startup is a prescription for trouble"

from question  

Serialization Performance and Google Android

"The problem is that using properties file will only works better than xml or json .. on the most trivial classes"

from question  

Java .properties files as strongly typed classes

"It s also more human-readable - consider versus is easier and quicker to parse as it s more lightweight - there are a lot of json parsers which are themselves smaller and quicker than themselves xml parser counterparts in the same programming language consider libxml2 versus js0n"

from question  

Json parsing vs xml parsing?

"Here is a great example of making external calls to a data source from google google maps php and sql if you re storing the points in just an external javascript file then i would recommend using json format over xml as the xml parser that google maps uses is much slower than json"

from question  

How do I dynamically add points to a Google Map when the bounds change?

"Using json or yaml will be more lightweight than xml since the parser of the config file will be simpler"

from question  

Configuring an application architecture

Format follow spec

Example

"This code returns your json transformed in the follow xml note the xml normally has an xsd however json is a more free format so in json s spec attribute order is not mandatory due to this jsonslurper returns a groovy.json.internal.lazymap which don t care about"

from question  

Convert JSON Array to XML - Groovy

"The following api call returns a customer record which does not have a value in the company field html rendering json rendering xml format is more formal about a customer record which does not have a value in the company field html rendering json rendering xml format because you can define a schema which prescribes what is the allowed shape of data"

from question  

What is the best way to notify api clients of null-valued properties of returned JSON object?

File pondes files

Example

"Once i try compare json and i saw that a json file pondes 2 times of less than a xml file"

from question  

Why SAX XML Parser is too slow

"For saving and loading i would recommend using json or xml files"

from question  

Can JavaFX UI icons be written/saved in a file and be retrieved later?

Information methods apiexplorer

Example

"With the controller and action methods you give as an example in your question asking for json gives a response like this and asking for xml gives us more information on the apiexplorer class can be found on msdn"

from question  

List Of Controllers And Classes In Asp.NET Web API

"The xml api is more stable click for more details on this as i need the response in json we can use a library like xml to json and vice-versa library as much as i have seen the xml response from the musicbrainz api is more accurate and gives a lot of information"

from question  

Album mbId in track's metadata

"Xml is more commonly used as the industry standard for exchanging information while json is commonly used to exchange information via rest-based apis"

from question  

How to work with JSON

Faster size easier

Example

"Reading json tends to be faster xml parsing is kind of expensive but that s if you re concerned with cpu consumption on the client;if i remember correctly last time i saw the numbers the compressed payload size for atom and json is not that different"

from question  

What is the most efficient way to send OData payloads over the wire? "Dense JSON?"

"Use json it s easier than messing with monstrous xml json is quite easy on iphone with touchjson library and php supports json natively too touchjson is at json is also smaller so natively too touchjson saves some traffic when using over 3g"

from question  

Send POST array

"This has several positive side-effects json is smaller than corresponding xml json is faster simpler syntax easier parsing faster parsing in my original answer to this question my view of json was that of javascript i considered my view of json to be a close relative"

from question  

What are the advantages and disadvantages of json vs xml for ajax requests?

"This has several positive side-effects json is smaller than corresponding xml json is faster simpler syntax easier parsing faster parsing json was that of javascript i considered it to be a close relative"

from question  

Is it more efficient to use a JSONArray or normal Array for storing/reading data?

"It would not change the performance ordering since gob is faster and smaller json is in the middle with respect to both data size and processing size and xml is more bloated and slower to process"

from question  

Serialization performance in golang json/gob/xml

"Basically xml is more than 2x the size of json but at the same time basically xml looks as if microsoft put in a lot of effort in optimizing microsoft xml datacontractserializer as it is more than 30 faster than microsoft json one"

from question  

When to prefer JSON over XML?

"Besides the comment about sql injections i recommend you to format your data in a common format like json or xml it will make your life easier as your project increases or changes in this example i ll use json because is easier to understand then in unity first you need to add a json library like simplejson just download a json library and copy a json library to your scripts folder then you just do something like"

from question  

Query data from PHP and create ScrollList in unity C#

"Obviously this kind of serialization is going to be faster than json any day xml is slow by definition"

from question  

Serializing objects as raw memory

"Assuming that arrays or linked lists of strings are not allowed you could convert the serialized contents of an xml file into json which is considerably faster to parse easier to cache and smaller in size than xml or any other serialization format"

from question  

What is the best and optimized way to extract data from XML multiple times?

"Your current example is not valid xml since the tag is never opened valid xml is much easier to put payload requests into separate files just be aware that the file still must be valid json quotes escaped with one backslash like so you might want to read the xml content from a separate file"

from question  

How can I validate XML embedded in JSON using Citrus framework?

"Servicestack.common contains the following service clients jsonserviceclient - the lightweight ubiquitous self-describing resilient format jsvserviceclient - faster more compact than json ideal for .net to .net services xmlserviceclient - for folks who like using xml slower than json jsv soap11serviceclient soap12serviceclient - if your company mandates the use of soap"

from question  

ServiceStack RESTful WebService and passing data in message body

Weight light corner

Example

"These aren t the only two options you can also use json or yaml which are much lighter weight than xml"

from question  

XML vs comma delimited text files

"Json is generally more light weight and efficient than xml less rules less corner cases shorter data more similar to actual datatypes ... or if you want it to be really efficient you could uses a binary format like bson"

from question  

Embedded Parser Memory Use XML vs JSON vs?

"The right idea json s light the right idea json s easy convenient and some would argue more readable than xml"

from question  

JSON Schema compared with XML Schema and their future

"Json is considered more light weight than xml though"

from question  

IPhone: making web calls to example.com API

Element root object

Example

"A markup language is a way of adding extra information to free-flowing plain text e.g here is some text. with xml using a certain element vocabulary you can put this is what makes markup languages so useful for representing documents;an object notation like json is not as flexible"

from question  

What is the difference between json and xml

"Your actual problem is in reading your list of strings from xml not writing then to json;your json has an outer root element corresponding to the object"

from question  

How can I serialise a string array to JSON using DataContractJsonSerializer?

"No single top-level object example like xml json requires a root must be dangling comma examples and mismatched quote example;thoughts it sounds like your json isn t well-formed"

from question  

Javascript parsing JSON string throwing exception in AJAX workflow

Quality concerns sense

Example

"Then the performance depends on how much stuff you re sending and since json is usually more concise than xml json will generally perform better over a network"

from question  

Json and Xml serialization, what is better performance?

"As per quality concerns json is better in sense of quality compare to xml due to xml parsing and mapping"

from question  

What is difference between retrieve data in android from .json , .xml extension?

Devices mobile look

Example

"Take a look at also may i suggest that you take a look a json which in many cases is more lightweight than xml and hence prefered for mobile devices"

from question  

.Net XML reader equivalent in Android?

"The advantages write less code faster since mobile devices don t always have good internet connections and the xml overhead from soap is bigger than json"

from question  

Android -- How to access data in an ASP.NET database via app?

"Also json has a smaller footprint than xml and is also usually better human parseable"

from question  

What is the most performant way to inject new code into the DOM?

"Personally i prefer json if mobile devices are involved as the footprint from json is smaller than xml due to mobile devices are involved as the footprint from json characteristics"

from question  

Android : what Strategics or steps to connect my android app to SQL server

Purpose overhead non-ajax

Example

"The servlet the jsp code note if you put the in a the may be reusable elsewhere in a non-ajax response the js code you ll by now probably realize why xml is so much more powerful than json for the particular purpose of updating a html document using ajax"

from question  

How to use Servlets and Ajax?

"Json has less overhead than xml can also be a good thing on a phone less bandwidth"

from question  

Flash CS5 on iPhone - developing client/server data apps

"Now a days json is more popular than xml which serves the same purpose but reduces the overhead of parsing"

from question  

What are the main purpose of using XML in Web pages?

Weight heavier fewer

Example

"Also if you compare xml with json this is probably more obvious that too much abstraction leads to a heavier payload and a heavier intellectual weight"

from question  

Is there such thing as something being 'too abstract'?

"Json is much lighter than xml however json cannot store anything other than text and numbers where xml can store any number of different types of data"

from question  

Saving array to php file

"Weight since json syntax requires fewer characters it is lighter on the wire than xml"

from question  

Which is better in terms of parsing performance in Android, XML or JSON?

Opinion record some_field

Example

"In my opinion json is easier to parse on the client javascript and more concise smaller size so unless you really need to output xml for legacy reasons go with json"

from question  

Which is best from this xml or json to use in web application all the devices

"This would print table table1 has a record called id table table1 has a record called some_field json is much easier to work with than xml in my opinion and json_encode decode is very fast so there s little overhead"

from question  

What is the best file format for configuration file?

"In my opinion json is more human readable than xml and json.net gives the option to write nicely formatted json"

from question  

What is the most flexible serialization for .NET objects, yet simple to implement?

Simplicity sgml simpler

Example

"Json is best compare to xml xml is not well suited to data-interchange simplicity xml is simpler than sgml but json is much simpler than xml;json has a much smaller grammar and maps more directly onto the data structures used in modern programming languages"

from question  

Which is better in terms of parsing performance in Android, XML or JSON?

"Have a look on the following url simplicity xml is simpler than sgml but json is much simpler than xml"

from question  

Which is the best way to fetch/retrieve data from server in android? Is it Xml or Json

Verbose string smaller

Example

"Afaik json is less verbose and more human readable and hence the whole aura of better than xml"

from question  

Having control over client and server, in which cases is XML more preferable than JSON?

"It depends on the service and it api but it may be that returned xml is smaller than json so even xml is usually more verbose for your particular case xml is better"

from question  

Most efficient way to get HTTP Request Response into SQLite3 Database using Python?

"The final statement with an overly simplified example under undue circumstances json can be faster than xml dealing with json is pure string action while xml is parsed and transformed"

from question  

When can I save JSON or XML data in an SQL Table

"Json is very popular nowadays because it gives easy interop with the browser and it is readable ad less verbose than xml"

from question  

What is the best way to interoperably serialize a message?

"Yes you can use json as a string and save json to the sharedpreference that is because json is faster smaller and less verbose structure than xml"

from question  

What is the alternative for storing set in sharedPreference using only api 8 in android?

"I personally prefer xml as it s super easy to parse in .net using linq to xml but json is less verbose and arguably has a smaller footprint"

from question  

Would you use WCF Linq and JSON for an API

Smaller objects likely

Example

"For your requirements json will be the best kind of response because it is way smaller than xml more than 50 smaller in many tests"

from question  

REST vs. SOAP for large amount of data with Security

"2 json is preferred since json payloads are much smaller than json payloads xml equivalents especially when the requests are bigger and more complicated 3 just use json and there s no need to support an xsd file"

from question  

Formats supported by DocuSign REST API

"If the message payload is rich loads of nested objects and attributes then an xml schema might suit but if the messages are very large then consider that the json footprint is likely to be smaller than the xml one"

from question  

HTTP + XML or SOAP for creating Web Services

"However i think the very interesting fact is that people discovered you have to pay a high price for this elasticity json represented objects - although smaller than xml - are still larger than byte-code this can be solved to a large part by gzip but creates a second problem serialising and deserialising object to from strings is very inefficient und much slower than byte-code representations"

from question  

What is the use of REST in distributed web application

Simple known structure

Example

"Connect to your db by php and output the result as json is much better and faster then xml and less coding if use json framework"

from question  

What is the best way to connect an iphone app to a mysql database?

"Regardless json is easier to handle in javascript and a known structure is best - so always try to return json unless you need html xml or another known structure"

from question  

With this combo of jQuery, AJAX and PHP, how do I catch errors coming from the PHP?

"Of course in fact json is much better than xml for the following reasons apis for reading writing are much much much simpler. retrieving values is as simple as reading keys from a dictionary"

from question  

JSON in non-Javascript applications

"Using go 10 will run through this block ten times to avoid first-call-bias the final result shows clearly that json is slower than xml not that much about 1.5x on a still very simple example"

from question  

When can I save JSON or XML data in an SQL Table

"In an other side have a dom representation of an xml document in memory will cost more than a simple json document for same structure at a 3kb json is better"

from question  

Serialized JSON VS XML in terms of Performance

Space noise

Example

"Json has less noise than xml occupies less space when written to file especially if you do so without indenting etc"

from question  

C# export / write multidimension array to file (csv or whatever)

"Json takes a lot less space than xml although xml compress very well"

from question  

Is XML the best data interchange format when importing large amounts of data as a scripted routine in PHP?

Api building activemodel

Example

"When it comes to php the one reason i choose xml over json is because even in php 5 there is no officially supported api for traversal"

from question  

Which is faster for PHP to deal with/easier to work with in PHP; XML or JSON, and file_get_contents or cURL?

"I would definitely recommend json over xml for building or consuming api s activemodel works well"

from question  

JSON or XML or serialized array to save in MySQL database

"You don t need to parse the html - most of the hudson pages can be turned into api calls by adding url suffix make get calls to switch the json for xml or python if you prefer over json if you use just the api suffix you ll get a short generic help page on the api"

from question  

List of Slaves connected to master - Hudson

Possible typical mapping

Example

"Xml is certainly possible but json is more typical"

from question  

How to keep data structures and XML file in sync

"I think you understand that xml supports much more features than json and that s why xml - java - json - java - xml s not always possible to have 1 to 1 mapping"

from question  

Weird XmlMixed XML <-> JAXB <-> JSON marshalling/unmarshalling with MOXy

Good data pretty

Example

"Xml is more difficult to use but this is because it is much flexible and can be processed in many ways;php serialization is also a good alternative to json if you don t need to exchange data with systems that don t run php and json cannot help you"

from question  

Is a returned data in PHP always a string?

"Xml is more verbose but in the other hand is pretty easy to read. json is simpler but not so good to read. if you will not have humans looking the data maybe using json would be a better idea"

from question  

Which one is best? convert datatable to json or xml?

Mind

Example

"Json format is lighter and faster to process than xml bare in mind that soap undergoes validation via a given xsd maybe this framework is not using xsd to perform validation which might be risky the solution above conforms to jsr 223 which is the script engine jsr - this is good - as if needed you will be able to replace it with other vendors br i see that it uses a fast cgi http server - from what i know this is a highly scalable with very good performance of cgi"

from question  

PHP-Java Bridge vs RESTful WebService : With regards to performance which is better?

Data gui end

Example

"Xml is heavier than json so it uses more bandwidth but powerful for validating and transforming data yaml requires indentation and newlines making it a suboptimal format for sending over http but good for storing logs data and configs . json is native javascript and light so it s great on the client side and for transmitting over http"

from question  

Why should I use JSON with ASP.NET?

"We don t know whether you re developing a web app a batch processing tool a gui application etc i suspect json will be a bit more compact than xml although if json re compressing the data you may well find json end up taking the same bandwith as a lot of the bloat of xml is easily compressible"

from question  

Performance considerations of JSON vs. XML

Others

Example

Xml somewhat easily parses using the dom methods built into js but more complex than json

from question  

Understanding AJAX

Json is syntax for storing and exchanging text information - much like xml it s main advatages over xml are is smaller and shorter than xml faster and easier to parse quicker to read and write from w3schools json object could look like this xml file could look like this from the above examples you should see it is much faster to read and write json object rather than xml because it is much smaller and shorter

from question  

I don't understand JSON and when I'm supposed to use it, care to explain?

5000 rooms ----- test results for json.net reflection ----- getroomlist 5000 107 getroomlist 5000 60 getroomlist 5000 65 getroomlist 5000 62 getroomlist 5000 63 ----- test results for servicestack reflection ----- getroomlist 5000 111 getroomlist 5000 62 getroomlist 5000 62 getroomlist 5000 60 getroomlist 5000 62 ----- test results for soap xml manual mapping ----- getroomlist 5000 101 getroomlist 5000 47 getroomlist 5000 51 getroomlist 5000 49 getroomlist 5000 51 ----- test results for json.net manual mapping ----- getroomlist 5000 58 getroomlist 5000 47 getroomlist 5000 51 getroomlist 5000 49 getroomlist 5000 47 ----- test results for servicestack manual mapping ----- getroomlist 5000 91 getroomlist 5000 79 getroomlist 5000 64 getroomlist 5000 66 getroomlist 5000 77 50000 rooms ----- test results for json.net reflection ----- getroomlist 50000 651 getroomlist 50000 628 getroomlist 50000 642 getroomlist 50000 625 getroomlist 50000 628 ----- test results for servicestack reflection ----- getroomlist 50000 754 getroomlist 50000 674 getroomlist 50000 658 getroomlist 50000 657 getroomlist 50000 654 ----- test results for soap xml manual mapping ----- getroomlist 50000 567 getroomlist 50000 556 getroomlist 50000 561 getroomlist 50000 501 getroomlist 50000 543 ----- test results for json.net manual mapping ----- getroomlist 50000 575 getroomlist 50000 569 getroomlist 50000 515 getroomlist 50000 539 getroomlist 50000 526 ----- test results for servicestack manual mapping ----- getroomlist 50000 850 getroomlist 50000 796 getroomlist 50000 784 getroomlist 50000 805 getroomlist 50000 768 legend json.net reflection - jsonconvert.deserializeobject same json.net code as above servicestack reflection - jsonserializer.deserializefromstring soap xml manual mapping - same soap client call as above with added mapping from dto s to models json.net manual mapping - mapping json to models directly using code based on the zencoder s code above expanded to include mapping for the entire request rooms and locations as well servicestack manual mapping - see the below code based on example notes personal conclusions even reflection based deserialization is not that much slower than soap xml object generation in actual release mode oops manual mapping in json.net is faster than the auto mapping and even reflection based deserialization is very comparable in speed to soap xml mapping performance and even reflection based deserialization offers a lot of freedom which is great especially when models and dto s differ in places servicestack manual mapping is actually slower than when models and dto s full reflection based mapping

from question  

How to improve JSON deserialization speed in .Net? (JSON.net or other?)

In the hateoas world xml is better than json for readability and semantic purposes if you want to use json you could be interested by this specification

from question  

Versioning a RESTful API with both XML and JSON Content-Type

I suggest you have a look at the following links for json i personally prefer json to xml and some ways json is much better than xml for xml simply google i am sure you will get many results

from question  

I have a problem in AJAX

Json was for me a bit more compact than xml required less code on both sides json_decode is your friend and seemed to me to be an easier row to hoe than using xml

from question  

Passing multiple sqlite rows to mysql?

There is not really a best practice personally if i would choose between json and xml i would use json

from question  

Ajax: Definition vs Implementation? (XML vs JSON vs Other)

To your actual questions for webservices you often could choose between xml and json as a consumer try and there is no need to format json visually - is there tons of infos not meant for reading like xml if your response doesn t have a result json-service often still is giving a response text - look again at the upper google map links - those are including a response status which makes sense as it is a service

from question  

What are developers their expectations when receiving a JSON response from a server

I prefer amf over xml or json

from question  

Flex and Ruby on Rails

Mixed with latin script like xml html json it is even more compact with asian scripts than utf-16le be

from question  

How do I allow international character set?

Differences between json and xml similarities both json and xml are self describing human readable both json and xml are hierarchical values within values both json and xml can be parsed and used by lots of programming languages both json and xml can be fetched with an xmlhttprequest differences json doesn t use end tag json is shorter json is quicker to read and write json can use arrays you can find several explanations and guides on both xml and json in the links below

from question  

JSON and XML Serialization

Twitter also exposes a json feed for the same data this is probably a bit friendlier to your users data internet mobile subscription as json tends to have less overhead than xml

from question  

Linq to XML parsing a single "status" node from the twitter API

Xml has better tooling in the form of xslt xsd integration into many languages vb.net s native xml say and linq to xml and it s more naturally open - it s easier to extend xml with a new element without disrupting the old schema whereas a list in json contains unnamed items making functional collisions more likely

from question  

What are some specific circumstances in which you used JSON over XML?

You are relying on the website to have such an interface but if it exists the data is generally in a more suitable form to be machine read typically xml but not always;json api - java script object notation is a similar solution to ajax - like xml json is a human and machine readable format

from question  

Any tips on how i would go about extract Pandora likes and putting them on a spreadsheet? (C++/C#)

Android natively supports xml but not json;in other words what i m trying to say is that android phones are equipped with an hardware accelerated xml parser their own dedicated little piece of silicon basically but where it comes to json parsing android phones don t have that so they must use their cpu to do that work

from question  

Designing a service for consumption on multiple mobile platforms

It should be used when all the process has to be performed quickly and efficiently to input elements kxml - j2me pull parser - see better approach for xml creation in blackberry parsing xml with json blackberry standard for json parsing is json me no idea.;json can be represented and transported as a xml but not vice versa

from question  

Parse XML file on BlackBerry

The decision to use rest or soap when both are available is usually related to the tools and language you re using for your application your familiarity with either style the performance needs of your application json payloads are smaller than xml payloads if the local apps are calling the services from the server side then all else being equal you can at least generate c# code directly from the wsdl and that makes using the soap api simpler no hand coding

from question  

Salesforce SOAP vs REST

Another advantage of the json-based ruby api is that because json is so much more compact than xml json offers performance benefits over the older xml-based ruby rest api

from question  

Using the Rally API to create an artifact at the bottom of the backlog

To develop your own is simple enough include the total number bytes as an int in the first four bytes so you know once you have read that how many more till you have received a message then you would need a way to deseralize an array of bytes to from your objects which since you have marked them serializable you can use .net s binaryformatter note you need not send object s in binary form - you could send them as text as json or xml which is more portable

from question  

Deserialization of a custom class object over TCP?

You can make the contract a standard then saying between subsystems all the objects passed are serialized to json or xml which is more than trivial in ruby c# or any other language as well as truly platform-agnostic

from question  

C# application talking with ruby msgpack server which is expecting a ruby-type hash?

Otherwise i d recommend using json never ever use json as xml payload unless you must use xml as a transport container due to existing protocol needs and the cost of encoding and decoding json to from xml is somehow prohibitively high as compared to network storage lossage due to double encoding i have a major trouble imagining a plausible scenario like this but who knows... updated removed unicode bullets as per info in comments

from question  

Is it bad to store JSON on disk?

So to make this safe you should try to make some symetric asymetric encryption to protect the content and use check sums to avoid faked message to answer your questions json has fewer overhead than xml but json itselfe is not intened to be used as a communication protocoll

from question  

Proper Client <-> Server Communication

Finally xml cannot reasonable looked at until it is complete client-side at least so you cannot do partial inspection;though to be fair json will have challenges there as well depending on how it is structured

from question  

Ajax: Definition vs Implementation? (XML vs JSON vs Other)

I also use simplejson quite often because i prefer using json rather than xml

from question  

What's the state-of-the-art in Python programming in Windows?

Personally however i d recommend using json rather than xml if there is no specific need to use xml

from question  

AJAX not responding correctly

Save the following as a file called getgeo then use the following like this chmod +x getgeo getgeo 141.20.1.33 141.20.1.33 de germany 16 berlin berlin 52.5167 13.4000 or if you just want the 5th and 3rd field and no quotes do this or you can do the trimming inside the script itself if you prefer parsing xml or json you can change the csv to xml or json and you will get the following or json notes the command tr -d removes all double quotes from whatever it receives as input the -f switch to awk says to uses the comma as the field separator

from question  

How to add input into a website that is retrieved by Shell script so that the out can be printed out?

The back-end doesn t matter much but i do recommend using json as your protocol of choice over xml

from question  

What would be the best place to start learning AJAX (I have Perl as a backend)

You should be calling statuses update like so although i always recommend using json over xml when interacting with the twitter api. since you must authenticate to post to twitter and since you must use oauth the final thing i would recommend is using a twitter library like twitterizer to interact with the twitter api

from question  

Unable to send updates to Twitter using the following code. No error

If you set up the service to deliver json from the very beginning it will be easier for you if you want to scale as i d argue that generating xml is more difficult not to mention again the need to parse it anyway.but in on purpose show you two conflicting opinions and i can add the third one which summarizes the differences in data storage which rarely is an issue these days again only with big projects and there s little difference in other contexts winner json without compression

from question  

Javascript to read nested Json items

There are many alternatives to data exchange and we re looking at 2 popular technology here. xml is generally larger than json but xml is more flexible and can do more things

from question  

JSON Schema compared with XML Schema and their future

In my experience xml is more cumbersome to parse on android than json

from question  

Confusion between JSON and XML

If it s pure simple structured data and if you don t have to handle complexities like the need for the software at both ends of the communication to evolve separately rather than remaining in lock sync then json is simpler and cheaper you don t need the extra power or complexity of xml

from question  

Better way to load content from web, JSON or XML?

Where you want some control over both the source and target formats the custom strategy is designed for controlling the transformation in a custom way the result is you have much more control over both json and xml formats on the other hand the simplifications required to produce nice results in one format or another require assumptions about the schema or data that is not always true

from question  

MarkLogic XML to JSON conversion

To complete the previous answer the best solution is to optimize your scripts prefer json to xml parsing json is faster vastly

from question  

Good idea to run a PHP file for a few hours as cronjob?

Please keep in mind that json is only smaller if the tags are longer than the data. probably the fact that the xml is a lot easier to read and that json has a smaller footprint;xml pros easier to read used a lot more than json one of the main industry standards versioning possible namespace support multiple elements with the same name validation xml cons takes up more space increased bandwidth because of the size json pros doesn t take up a lot of space uses less bandwidth because of it s size footprint rising in the ranks as one of the main industry standards json cons harder to read versioning breaks client data if you are sending more data than you send tags then they are about the same and you would have been better off using xml for the fast parsing speeds

from question  

XML vs JSON. Which one is better for storing small chunk of data?

Alternatives reverse geocoding with simple xml json requests is also available from geonames or yahoo;for your information the reverse geocoding api from google for requests by xml isn t public so it s illegal to use

from question  

Integrate Google Maps API into an iPhone app

Pretty much anything that isn t xml isn t going to be as widely used thus there will be less tool support;json is probably about equivalent but it s pretty much equally unreadable

from question  

What usable alternatives to XML syntax do you know?

There are many guides to licensing here is one i think is decent generically speaking serializing your message in json is more efficient than xml

from question  

Serialization methods to create a custom cross-platform file format in C#

Asides from what allain lalonde already said one additional advantage of csv is that it tends to be more compact than xml or even json

from question  

What are the relative merits of CSV, JSON and XML for a REST API?

The main reason i might select xml over json would be if i were worried about receiving badly-formed documents since xml supports automated document format validation while you have to write your own validation code with json

from question  

"Best" Input File Formats for C++?

The structure of the messages is described using xml schema xsd which is either contained in or referred to by the wsdl the messages sent to and received from the web service are all in the form of xml that complies to the schema and which follows the protocols described by the wsdl using an xml protocol known as soap for simple object access protocol since the time that i wrote that post the json javascript object notation has become another popular format for data interchange with web services;typically services which use json do not use the equivalent of a wsdl or xsd but the other ideas are the same

from question  

How can WCF services be cross platform?

In any case proper jaxb annotations are necessary to convert to from xml xml is much pickier in this respect than json

from question  

Springboot REST application should accept and produce both XML and JSON

If xml has more than one node then zend framework converts xml has single node to a json array

from question  

I try to foreach loop XML file that is loaded from XML to json

I would actually recommend json over xml for this reason

from question  

Is it Better Practice to Inject HTML Through a Server or Through JavaScript?

You can create an extra column with xml data usually i would recommend json over xml but mysql has some special functionality to search trough xml data in fields

from question  

Store a number of data fields in MySQL when you don't know what it will be

Xml is ok for text markup but for general structures serialization is a quite bad option where json is much more suited

from question  

What are good alternative data formats to XML?

Kim is right in that docusign currently does not have good documentation for xml formatted request bodies;however sometimes json is not an option due to technical limitations you don t want to re-write parsing code or other reasons and developers are stuck with xml format

from question  

EventNotification XML structure

The difference being json like xml doesn t do anything it just describes objects;second i think the direction you re heading in is going to run you squarely into the realization that json is not relational

from question  

How to create JSON object with array of nested arrays for multiple days and multiple times?

Hey if you new and if xml output is not compulsory than call google api and get json o p from this api destinations denver sensor false and than you can parse it like try to use json it is more faster and easy to parse and better to use

from question  

Receiving null statements when parsing data from google maps api for Android Application

In your situation i would pick json over xml for all the reason s stated in the following post plus in android there are json array s built in by default so you don t have to do any extra passing of the code

from question  

Create list in android app

For example loading the following xml file will result in a grid where the first foo value is 11 you can check this out on sencha fiddle with this sample xml i understand you probably can t switch from xml to json since your not touching the server at all but json is much simpler to parse if you are able to

from question  

How to build the tree grid in UI from XML file as data source?

Tags tag your classes like this if you need more control over the xml json generated you might have to tweak this further

from question  

Using Web API to deserialize into class with abstract property

It uses jaxb under the hood which was meant to be used for xml and xml doesn t map very well to maps or key value pairs;for this reason instead of using moxy for json which is the default json provider in glassfish i would recommend using jackson

from question  

Reading JSON to map with JAX-RS

I prefer json over xml since the python script s in my opinion a cleaner syntax and easier to parse in the android and ios application

from question  

Update xml file every minute on server

I prefer json over xml but everyone has everyone personal preference

from question  

Alternative to building a proper web service for iPhone app to consume

For that reason web api will see that the browsers prefer xml over json and the jsonformatter will never be touched let alone your custom jsonconverter

from question  

Webapi with entity framework - use customer JSON converter to serialized DbGeography not working

Whatever approach you go for always prefer json over xml unless xml is mandated

from question  

Providing HTTP interface

As mentioned you can need to use jsonp because faa.gov apparently forgot to add the appropriate header to faa.gov api responses by the way - always prefer json over xml with javascript - it s so much nicer to work with

from question  

XML Parsing remote server

From the intro on the blog post as json is easier to read and write then xml

from question  

Converting CSV/XLS to JSON?

No literal line feeds ctrl-char code 10 and newlines are control characters that are not allowed within a json string xml does not require the line feeds between elements;you can simply remove them changing your multi-line xml document to an equivalent single-line xml document that will be able to be passed as a json string without problem

from question  

Are line feeds allowed in JSON strings?

I believe the fix which probably needs to be brought to the attention of whoever maintains that code so they can incorporate it is either to ask for xml instead of json output or to parse the resulting json with appropriate means instead of trying to look at it as xml not sure how to best implement either change as i m not familiar with that code;i believe that must be an error in the example it s getting a json result indeed if you copy and paste that url in your browser you ll download a file names search.json which starts with perfectly normal json

from question  

Yahoo BOSS Python Library, ExpatError

Walking json key-value pair is easier than walking through xml structure as a mobile app a mobile app needs a compact data to be transferred through a network and json is lighter than xml rpc as an additional plus outside android the rest api with json is also easier to integrate with the web counterpart so you will have api for multi channels delivery

from question  

Natural webservice type for Android

Json cares less about standards it has no schemas so portability may be more difficult than for someone skilled in using xml

from question  

Why is JSON more lightweight than XML?

In the old days web services used xml as the old days web services primary data format for transmitting back data but since json appeared the json format is specified in rfc 4627 by douglas crockford json appeared has been the preferred format because json appeared is much more lightweight you can find a lot more info on the official json web site

from question  

What is JSON and why would I use it?

For jaxb style operation there is also jackson xml module which can be convenient when supporting both xml and json dom is slower approach partly due to 2-phase processing and partly because memory usage is 3-5x higher than with direct data-binding depending on kind of data some benefits of dom-based approach are it is xml specific so if specific xml aspects or tooling matter use of xpath xml schema it is possible to access all details of xml usage since dom is untyped flexible it is sometimes better fit for dynamic and loosely .

from question  

XML/JSON processing

If you can use json jquery s generally more succinct than xml and jquery also has native jquery support

from question  

* (no title is found for this review)

Jersey should always produce utf-8 by default sounds like the problem is that your client isn t interpreting it correctly the xml declaration doesn t make it utf-8 just tells the client how to parse it;valid json is only supposed to be unicode utf-8 16 32

from question  

Jersey web service json utf-8 encoding

Json xml allows much more than key-value pairs

from question  

What are the advantages of data formats like JSON/XML over key value pairs?

Also json imho is much clearer than xml which makes json imho for me a clear advantage

from question  

When to prefer JSON over XML?

Imho json is one of the most difficult formats to deserialise efficiently even harder than xml

from question  

Actual JSON serialization benchmark for Java-APIs

Xml is harder to parse than .plist or json files but aside from that the difference should be minimal

from question  

Swift - how do i convert a regular XML file to a .plist XML file

The problem essentially arises because you want simple json to end up as simple xml but you find yourself contorting the design to handle edge cases such as characters that are legal in json but not in xml preserving distinctions such as the distinction between the number 10 and the string 10 or worrying about the best representation of a json null;converting a specific json object or class of objects into xml is usually no problem at all

from question  

Potential problems of mapping JSON to XML

Xml is a document markup language providing semantics that gives additional meaning to data;json does not have this ability

from question  

Are JSON and XML Comparable?

Xml can be more self-describing than json but is likely to be more work to parse

from question  

What type of webservice works best with iOS?

I would suggest you to go ahead with more than xml json

from question  

What is the best way to make a configurable text elements for HTML5 App

If you want to go this way i would still recommend using xml or json to store texts and making the game import texts in db on the first run

from question  

Organizing many texts by swapping instances

There is probably a rest service you can call which gives you the answer back as xml json something more computer parseable

from question  

Use VPN ip address htttp Urlconnection java

You could serialize the xml in json so if response is input parameter of success function you can get length of data by response.length json is usually more manageable with javascript. probably you can get length of xml object in same way with xml.length consider also method size of jquery additionally when you execute this .find epcf_1_1 this .find epcf_1_2 etc

from question  

JavaScript - Just learning FOR

If you want to choose other than json and xml then choose custom

from question  

How to set the format of a reply to a REST service in BW6

Rest if services will be consumed by a web browser internet application mobile application when processing power is low i will choose rest as the communication is being made in json format which is more friendly with javascript technologies and the processing and parsing time is less than xml

from question  

SOA - Microservices : Use API REST or SOAP

I haven t benchmarked it but i d bet that the biggest performance gain comes out of the fact that parsing json is much less cpu-intensive than parsing xml

from question  

Will XSLT work well with AJAX?

Xml repeats the node type in the closing tag whereas json just infers closure scope using a stack;xml supports namespaces as far as i know json doesn t

from question  

Why is JSON more lightweight than XML?

For upload new xml files to the device you can using file sharing that will allow user can upload file to your app via itunes make your app like a server and user will upload file via wifi you can search the open source in github for example p s i think the json file will be lighter than the xml file

from question  

User accessible xml files used in iOS application

Generally you should compare json with xml but you can t compare sqlite and json which are two different things

from question  

Android data storage, When to use SqlLite and when to use JSON, Linq alternatives

Json is a bit younger than xml so i am not sure how much research was already done on mapping to tables -- it is possible that there are also general mappings that specifically address json rather than xml even though the general principles are similar

from question  

How to represent JSON object under CSV

Xsd and relaxng are defined against xml not json;for json see json schema but realize that it has nowhere near the adoption of xsd and the latest draft of the specification expired august 3 2013 casting doubts on the future of the effort

from question  

How do I validate JSON against XML Schema (XSD) or RelaxNG?

In most cases people believe xml is better because developers can do anything under the sun but in the age of simplifying less is more making json a better alternative

from question  

XML and JSON -- Advantages and Disadvantages?

But json is more light-weight as xml has a lot of required redundancy unless it is compressed

from question  

Should i use SOAP or REST in accessing Web service?

Json and xml perfectly match your problem - i d use json which can easily be parsed in the context of a browser too xml processing is less efficient

from question  

REST Solutions for Complex Data Structures

Binary xml is the way to go and there s some implementation of it if you need to glue to the xml standard;json even not being xml will lost with numbers

from question  

.NET Implementation of Efficient XML

Load the data with and store it with if you really insist on storing your data as a php program use the var_export function there s no need to use xml since it would be slower and more complicated than json

from question  

Edit a .PHP file using PHP

For json i would recommend you to look at this question how to render json response in play framework v2.0 latest build from git xml is far more simpler since you can just call return the result with code like this ok xml xmlstring but the cleaner way fot using this functionality is probably to write your own template under views xml like mdo.scala.xml could be then in your controller otherwise you maybe have the similar toxml function to tojson with the help of a marshaling library

from question  

How to serve XML and JSON with Play! 2.0

An example i often use is of an insurance company if you re returning lists of policy holders lists of policy holders addresses and the amount of lists of policy holders insurance coverage either xml or json will work and json is likely more convenient and may have fewer same origin issues

from question  

Using XML for Ajax response vs normal HTML

Cases where xml sort of works but where there is more cost in overcoming impedance between object and hierarchic models json is not a perfect fit -- it s still data not objects no identity can no identity do full graphs -- but it is more natural than xml and as such it is easier to build tools to do good decent and simple data binding

from question  

Why is JSON replacing XML as a data format?

In compare to json and xml there is no difference in security but json is much faster than xml thats why we prefer json over xml...but if you see from security point of view than you can go for soap

from question  

Is JSON better than XML? Which one is more secured?

Finally xml is not the only game in town;json is becoming popular as an xml alternative

from question  

What is benefit of sending xml using jms

Without knowing any details beside that your transaction is size critical and written in c# i would recommend thinking about to use post instead change timeout value from your web api modify server settings check get size limits timeouts prefer serializing json over xml use multithreading load a chunk of data needed to populate your views first leave the idea of transferring all data in one transaction if data amount is will be an issue

from question  

API time out when trying to send serialized data if data is more in number

In xml they appear as an i type attribute as you can see from your own example type hints can be added for both collection and non-collection classes;in json objects they appear as an added property named __type but as mentioned before json arrays cannot have properties

from question  

DataContractJsonSerializer: collection type cannot be serialized when assigned to an interface

Json is not xml;so no xml technologies are applicable to json at least without any conversions to corresponding xml . that is xsd cannot be used to validate json

from question  

CXF - Json schema validation

There are very similar libraries like this that do the exact same thing for xml but i ve not had much luck figuring them out and i m usually on a very tight time scale when i just need something that i know works if you can find a decent xml library and understand how to use a decent xml library correctly i d recommend xml over json due to json strictly structured nature and you can include schema versions and aid with integration into other systems by providing a well written schema

from question  

UWP/C# Advice with storing application user data?

If you don t need that advantage json is better because advantage json has excellent renowned libraries - like gson from a quick glance yaml s libraries don t seem nearly as good.. whatever you do - don t go with xml

from question  

Create an item and bag handler for a text-based RPG

Back to Home
Data comes from Stack Exchange with CC-BY-SA-4.0