OKay, I'm a bit of a javascript n00b, so forgive me if this seems like an obvious question.
I want to write an application using processing-JS, and I'd like to be able to load it with server-side data. I haven't written the server side yet so I can use anything, but it seems the obvious AJAX thing would be to use JSON to upload the data into the page.
How can I get access to that data from my processing code? Is it something as easy as the data is in scope, or could be attached to the window object and directly accessed from the processing code?
Update: Let me refine the question a little bit. I'm comfortable with JSON (but thanks for the links) and with writing code for both the client and server; my real questino (which admittedly could be somewhat silly) is if I get data with, eg, JQuery, and want to manipulate it in processing-js, is it in the same name space? Do I have to do anything odd to access it?