Results 1 to 1 of 1
- 06-25-2011, 01:37 PM #1
Member
- Join Date
- Apr 2011
- Posts
- 10
- Rep Power
- 0
Data Exchange Format between Web Front End and Web Back End
To improve development efficiency of Web Application, we need to implement the parallel development between Web Front End and Web Back End. To achieve this goal, first we should determine the data exchange format between Web Front End and Web Back End. In this article, let’s talk about some data exchange formats between them.
Common data exchange formats between Web Front End and Web Back End are as below:
XML
XML stands for EXtensible Markup Language
XML is a markup language much like HTML
XML was designed to carry data, not to display data
XML tags are not predefined. You must define your own tags
XML is designed to be self-descriptive
XML is a W3C Recommendation
JSON
JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. It is based on a subset of the JavaScript Programming Language, Standard ECMA-262 3rd Edition - December 1999.
XML and JSON, both can be used as data exchange formats. Let’s compare their main advantages and disadvantages between them.
XML
Advantage
XML is better for human reading than JSON.
Disadvantage
XML is not lighter as JSON.
JSON
Advantage
JSON is lighter than XML.
Disadvantage
JSON is not better for human reading as XML.
In my opinion, JSON is a great data exchange format for Web Applications over browsers. It is not the question of XML vs. JSON. It is the question of When XML and When JSON.
From: Jacky Cui's Java Home: Data Exchange Format between Web Front End and Web Back End
Similar Threads
-
How to read emails from exchange server (in msg format)???
By new_2_java in forum New To JavaReplies: 1Last Post: 03-28-2011, 06:48 AM -
Serialization example, reading the data back into the object
By merik in forum New To JavaReplies: 3Last Post: 11-17-2010, 05:47 PM -
Need to Save a data to file from JPanel and read the data back to Jpanel
By yashrajsen in forum AWT / SwingReplies: 1Last Post: 11-09-2010, 09:28 AM -
How to exchange data between CTabItems
By arminka in forum SWT / JFaceReplies: 0Last Post: 10-05-2010, 04:05 PM -
How do we exchange data between Java and JavaScript and vice-versa
By freddieMaize in forum Advanced JavaReplies: 0Last Post: 04-07-2008, 07:44 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks