I had been using xml for a while now. At the beginning of the week I had an idea to send data as a string in a format like a javascript object. I didn't know it was called a JSON. The next day I was reading through lxer (a linux news site) and came across an article on using php with XML or JSON. Since I didn't know what a JSON was I looked it up. Wow just what I wanted to use. It only talked about using it from a file where as I wanted to use it more like ajax. I was looking around for documentation on this and found a bunch of misinforming articles. I put together some tests and I think I have a good working example.