Both JSON and XML are the most popular data transversal resources in programming world.Due to their various important characteristics and features both of these resources are widely used globally.
On the basis of their features following are the important differences JSON and XML
|2||Type||JSON format is data interchangeable.||On other hand XML format is Mark-up language.|
|4||Name-space and Array||JSON does not provides any support for name-spaces but supports Arrays.||On other hand supports name-spaces but does not support Arrays.|
|5||Secured||JSON is less secured as compare to that of XML.||On other hand XML is comparatively more secure than JSON.|
|5||Encoding||JSON supports only UTF-8 encoding.||On other hand along with UTF-8 encoding XML also supports various other encoding.|