You probably are storing the information in SQL at the back end.
The purpose of JSON/XML in this context is to provide data to client-side Javascript through a webservice, which at the back end is probably a server-side language (php, ruby, whatever) that is pulling data from SQL, and then marshaling it into JSON/XML for consumption by the requesting client.