I know that JSON can be used between 2 web servers, for example facebook API provides some infos using aFile.json so my website need to handle it using PHP's json_decode() function,
the problem that I can't imagine any pratical situation wherein we can use it between a server and his client to exchange data. If the client request for some data, the server will use either SQL to retrieve them from a database or a JSON recieved file or whatever else... but finally he will respond only by an HTML file (& probabely some images) so the client's browser can interpret it,
Am I wrong and the JSON files can be sent to the client ? then why ? I readed also that JSON is used to communicate between PHP and javascript in the same server, can you give me an example of this case ?