Forum discussion on JSON

Answer the question and discuss

Answer the question and discuss

by Md Assaduzzaman -
Number of replies: 26

Which one is better between JSON and XML..? Why..?

In reply to Md Assaduzzaman

Re: Answer the question and discuss

by Md Rifat Rahman -
JSON is better than XML Because it is designed specifically for data interchange. JSON encoding is terse, which requires less bytes for transit. JSON parsers are less complex, which requires less processing time and memory overhead. XML is slower, because it is designed for a lot more than just data interchange.
In reply to Md Assaduzzaman

Re: Answer the question and discuss

by Abdul Hadi Hemal -
JSON is limited in terms of what objects can be modeled. Some may think XML is better because more objects can be modeled and it doesn’t prohibit developers. But even though JSON prohibits developers, it is in a positive way, making the code simpler, more predictable, and easy to read. XML can be formatted to look and function any way a company wants, but it makes it difficult for developers to read, understand, and convert. 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.
In reply to Md Assaduzzaman

Re: Answer the question and discuss

by Anaminni Akbar Rupa -
JSON is better than XML Because it is designed specifically for data interchange. JSON encoding is terse, which requires less bytes for transit. JSON parsers are less complex, which requires less processing time and memory overhead. XML is slower, because it is designed for a lot more than just data interchange.
In reply to Md Assaduzzaman

Re: Answer the question and discuss

by Md Ahsan Habib -
JSON vs. XML is not exactly a fair comparison. One thing is to compare both technologies considering their purpose according to the developer's goals. In that case, JSON is faster and easier to use. However, another thing would be to compare them considering the features each technology offers. In this regard, even though XML is slower and more complex, it also provides additional features that, to these days, JSON has not yet developed.
But JSON doesn't use an end tag, JSON is shorter, quicker to read and write, and can use an array. But XML doesn't have these features. So, we can come to a point that JSON is much better than XML in most cases.
In reply to Md Assaduzzaman

Re: Answer the question and discuss

by Md. Sarowal -
JSON is limited in terms of what objects can be modeled. Some may think XML is better because more objects can be modeled and it doesn’t prohibit developers. But even though JSON prohibits developers, it is in a positive way, making the code simpler, more predictable, and easy to read. XML can be formatted to look and function any way a company wants, but it makes it difficult for developers to read, understand, and convert. 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.
In reply to Md Assaduzzaman

Re: Answer the question and discuss

by Mehedi Hasan -
JSON is better than XML Because it is designed specifically for data interchange. JSON encoding is terse, which requires less bytes for transit. JSON parsers are less complex, which requires less processing time and memory overhead. XML is slower, because it is designed for a lot more than just data interchange.
In reply to Md Assaduzzaman

Re: Answer the question and discuss

by Md. Monirul Islam -
JSON is used to store information in an organized, and easy-to-access manner. Its full form is JavaScript Object Notation. It offers a human-readable collection of data which can be accessed logically.

XML stands for Extensible Markup Language. It is a text-based markup language derived from Standard Generalized Markup Language (SGML). XML tags identify the data and are used to store and organize the data, rather than specifying how to display it like HTML tags, which are used to display the data

JSON is faster and better because it is designed specifically for data interchange. JSON encoding is terse, which requires less bytes for transit. JSON parsers are less complex, which requires less processing time and memory overhead. XML is slower, because it is designed for a lot more than just data interchange.





In reply to Md Assaduzzaman

Re: Answer the question and discuss

by Sharmila zaman -
JSON is better than XML. JSON is faster because it is designed specifically for data interchange. JSON encoding is terse, which requires fewer bytes for transit. JSON parsers are less complex, which requires less processing time and memory overhead. XML is slower because it is designed for a lot more than just data interchange.
In reply to Md Assaduzzaman

Re: Answer the question and discuss

by Md Golam Rabbani -
JSON is better than XML Because it is designed specifically for data interchange. JSON encoding is terse, which requires less bytes for transit. company wants, but it makes it difficult for developers to read, understand, and convert. 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.In this regard, even though XML is slower and more complex, it also provides additional features that, to these days, JSON has not yet developed.
In reply to Md Assaduzzaman

Re: Answer the question and discuss

by Shahin Hossen -
JSON is limited in terms of what objects can be modeled. Some may think XML is better because more objects can be modeled and it doesn’t prohibit developers. But even though JSON prohibits developers, it is in a positive way, making the code simpler, more predictable, and easy to read. XML can be formatted to look and function any way a company wants, but it makes it difficult for developers to read, understand, and convert. 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.
In reply to Md Assaduzzaman

Re: Answer the question and discuss

by Rasel Hossain -
Ans: JSON stands for JavaScript Object Notation. It’s an open-standard file format that is used for browser-server communications. It’s a language-independent data format. XML stands for Extensible Markup Language. It’s a set of rules that help users encode documents in a human-readable format and machine-readable.
In reply to Md Assaduzzaman

Re: Answer the question and discuss

by A. B. M. Mohiuddin -
Which one is better between JSON and XML? Why?

Answer: JSON is faster and better because it is designed specifically for data interchange. JSON encoding is terse, which requires less bytes for transit. JSON parsers are less complex, which requires less processing time and memory overhead. XML is slower, because it is designed for a lot more than just data interchange.
In reply to Md Assaduzzaman

Re: Answer the question and discuss

by Tanjir rahman -
JSON is faster because it is designed specifically for data interchange. JSON encoding is terse, which requires less bytes for transit. JSON parsers are less complex, which requires less processing time and memory overhead. XML is slower, because it is designed for a lot more than just data interchange. JSON has a more compact style than XML, and it is often more readable. The lightweight approach of JSON can make significant improvements in RESTful APIs working with complex systems. Faster: The XML software parsing process can take a long time.
In reply to Md Assaduzzaman

Re: Answer the question and discuss

by Md Hasibul Hassan -
JSON is better than XML Because it is designed specifically for data interchange. JSON encoding is terse, which requires less bytes for transit. company wants, but it makes it difficult for developers to read, understand, and convert. 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.In this regard, even though XML is slower and more complex, it also provides additional features that, to these days, JSON has not yet developed.
In reply to Md Assaduzzaman

Re: Answer the question and discuss

by Sohana Tasmim -
JSON is better than XML Because it is designed specifically for data interchange. JSON encoding is terse, which requires fewer bytes for transit. JSON parsers are less complex, which requires less processing time and memory overhead. XML is slower because it is designed for a lot more than just data interchange.
In reply to Md Assaduzzaman

Re: Answer the question and discuss

by Khandoker Shamimul Haque -

Answer: JSON is Better Then XML......


JSON data model’s structure matches the data: JSON’s data structure is a map, whereas XML is a tree. Although a map (just key/value pairs)Screen_Shot_2014-08-21_at_2.19.18_PM can be limiting, that’s what we want, because it is easier to interpret and is predictable.


In code: Items are represented the same way in code. In many languages, especially dynamic ones, you can just ‘slurp in the JSON’ and you immediately have your domain object. It is easy to go from objects in JSON to the objects in code because they align. When going from objects in XML to objects in code they do not align and there is a lot of room for interpretation.


JSON is limiting, but that’s a good thing: JSON is limited in terms of what objects can be modeled. Some may think XML is better because more objects can be modeled and it doesn’t prohibit developers. But even though JSON prohibits developers, it is in a positive way, making the code simpler, more predictable, and easy to read. XML can be formatted to look and function any way a company wants, but it makes it difficult for developers to read, understand, and convert.  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.

In reply to Md Assaduzzaman

Re: Answer the question and discuss

by Md Imran Hossan -
JSON is better than XML Because it is designed specifically for data interchange. JSON encoding is terse, which requires less bytes for transit. JSON parsers are less complex, which requires less processing time and memory overhead. XML is slower, because it is designed for a lot more than just data interchange.
In reply to Md Imran Hossan

Re: Answer the question and discuss

by Md.Iftakher Alam -
JSON is better than XML Because it is designed specifically for data interchange. JSON encoding is terse, which requires less bytes for transit. JSON parsers are less complex, which requires less processing time and memory overhead. XML is slower, because it is designed for a lot more than just data interchange.
In reply to Md Assaduzzaman

Re: Answer the question and discuss

by Nozrof Shahriar -
JSON has no display capabilities whereas XML offers the capability to display data. JSON is less secured whereas XML is more secure compared to JSON. JSON supports only UTF-8 encoding whereas XML supports various encoding formats.
In reply to Md Assaduzzaman

Re: Answer the question and discuss

by Md. Tanvir Ahmed -
I think JSON is better than XML Because it is designed specifically for data interchange.
In reply to Md Assaduzzaman

Re: Answer the question and discuss

by Jannatul Marjan -
JSON has no display capabilities whereas XML offers the capability to display data. JSON is less secured whereas XML is more secure compared to JSON. JSON supports only UTF-8 encoding whereas XML supports various encoding formats.
In reply to Md Assaduzzaman

Re: Answer the question and discuss

by Kazi Masudur Rahman -
JSON is faster because it is designed specifically for data interchange. JSON encoding is terse, which requires fewer bytes for transit. JSON parsers are less complex, which requires less processing time and memory overhead. XML is slower because it is designed for a lot more than just data interchange.
In reply to Md Assaduzzaman

Re: Answer the question and discuss

by Raihan Islam Sonet_181-15-1983 -
JSON is better than XML. Because,
JSON is faster because it is designed specifically for data interchange. JSON encoding is terse, which requires less bytes for transit. JSON parsers are less complex, which requires less processing time and memory overhead. XML is slower, because it is designed for a lot more than just data interchange.
In reply to Md Assaduzzaman

Re: Answer the question and discuss

by Rakibul Hasan -
JSON is faster because it is designed specifically for data interchange. JSON encoding is terse, which requires fewer bytes for transit. JSON parsers are less complex, which requires less processing time and memory overhead. XML is slower because it is designed for a lot more than just data interchange.
In reply to Md Assaduzzaman

Re: Answer the question and discuss

by Md.Iftakher Alam -
JSON is limited in terms of what objects can be modeled. Some may think XML is better because more objects can be modeled and it doesn’t prohibit developers. But even though JSON prohibits developers, it is in a positive way, making the code simpler, more predictable, and easy to read. XML can be formatted to look and function any way a company wants, but it makes it difficult for developers to read, understand, and convert. 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.