Quantcast
Channel: When do I need to use JSON and XML? - Stack Overflow
Viewing all articles
Browse latest Browse all 7

When do I need to use JSON and XML?

$
0
0

I know there are a lot of sources which explain this, but they just talk about storing key/value pairs in an array or in an object.

I can't understand why or when should I do this, although I always use jquery's AJAX. As an example, if I make a forum when do I need this? Can someone give real world examples?

The same goes for XML. It stores information too. But what kind of information? Why can't I store it in MySQL?

EDIT: so with $.json() you retrieve a json file and then display the content in the browser. but who creates this json file? me? manually? and why? and how?

so you can just retrieve a json file? can you do something else?


Viewing all articles
Browse latest Browse all 7

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>