Question: I have set up a local server using `XAMPP`. Now I want to get `JSON` / `JSONP` data from that server.

**Side question:** 

`Do I need to somehow upload the JSON file on the server? 
Or is there some`PHP`coding for that? IF yes, which?`

I have heard about some `jQuery ajax` call function, but it didnt work for me. 
Any ideas?

Answer: 
You have several way of doing that. if the result is not dynamic you just create a json file on server and get it using URL.

if you want to do it dynamic in response to web page sent to server you can use the built in PHP function json\_encode.

Please follow php documenation for [json\_encode](http://www.php.net/manual/en/function.json-encode.php)
i don t think you need to do a lot of things.
json is a way to format data. you can do that returnin an output using json\_encode() 

exemples and info at <http://www.php.net/manual/en/book.json.php>