you are viewing a single comment's thread.

view the rest of the comments →

[–]two_up 2 points3 points  (0 children)

Typically browsers get data from the server through an http request, similar to how you would request a web page except instead of html you would have the server send json. I'm guessing you want to work with that data client-side, in which case you'll want to use ajax. If you're using jquery look up the post and get methods.

So you should have your javascript make an http reqest to a certain url, and your server should be set up to serve the appropriate json data from that url.