Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

Which one is the best to use as data format jSon or xml?

user-image
Question ajoutée par Kashif Akhter , VP - Wing Head Application Development , National Bank of Pakistan
Date de publication: 2013/04/19
Utilisateur supprimé
par Utilisateur supprimé

jSon.

AbdelMalek AIT AMOKHTAR
par AbdelMalek AIT AMOKHTAR , SharePoint Freelancer , DotNet Partners

I think that it depends on the type of the application: JSON is lighter than XML and is easy to use in javascript but you have to know the structure of the serialized object so it's the best in web application when both client and server parts are developped by the same entity XML is heavier but is designed to be simply described and tronsformed(XSD, XSL) so it's the best for distributed applications (based for instance on SOAP services)

Utilisateur supprimé
par Utilisateur supprimé

Personaly I prefer json because of simplicity and readability of json.
I'm sure that it depends of thestination of the application, but i think it's the best for web applications.

islam khalil
par islam khalil , Technical Manager , iCloudit

For Web Application , I Prefer JSON.

Moamen Mashael
par Moamen Mashael , Lead Magento Developer , BestResponseMedia

This depends on amount of data For simple and short data JSON is more prefered, But if you have more complexity or long chunks surely you need to use XML.

Ashraf Sabry
par Ashraf Sabry , Freelancer developer , N/A

The current trend is to use JSON in data interchange (like in web services).
Some big vendors (like Twitter) deprecated their XML web services in favor to JSON.
XML is still used in configuration files, as it's -in my opinion- more readable than JSON.
Although systems like NodeJS (and its packages) use JSON in configuration files too.

Muhammad Javed Iqbal
par Muhammad Javed Iqbal , Lead Flutter Developer (Remote/Contract) , eezly Technologies PVT ltd

JSON,

Because JSON is simple and more readable, it is easy to handle JSON data more than xml format. And JSON is fast enough than xml for small amount of data.

 

Also it depends upon the data you want touse.

If data is in the form of objects then JSON is preeferred But if the data is in the document/file form and big amount of data then we can use xml.

MOHAMED MAHMOUD EISSA
par MOHAMED MAHMOUD EISSA , Software department MGR. and Senior developer , Global Media Services GMS

It totaly depends on the application you are dealing with, comlexity of the data and how light you need the data to be JSON is lighter but for complex data XMl might be a better choice as XML’s strength is extensibility and the avoidance of namespace clashes. It holds any data type and can be used to transport full documents with formatting information included. XML is best used when transporting something like a patient chart or text document with markup included.

JSON is purposefully limited and therefore much lighter than XML. I suspect that, most of the time, data can be modeled with hashes and lists comprising simple data types, making JSON the preferred route.

 

smaa El Nagar
par smaa El Nagar , Senior .Net and SharePoint Developer , Ibtikar technologies

it depends if you are using java script sure json is the best choice if you are dealing with databases and web services for example asp.net xml is your optimum choice

Muhammad Majid Saleem
par Muhammad Majid Saleem , Senior PHP Developer / Project Manager , SwaamTech

JSON is better than XML.

More Questions Like This