That's right, I could do without a library. I have stored some information (the double combos of Ajax In Action) in a bean, so I wanted to converted it without worrying about colons, brackets and so on. I was reading in an other book yesterday about JSON libraries for server side, so I wanted to give it a shot Do you mean that you never use such libraries ?
Originally posted by Eric Pascarello: Can I ask why you need a library to work with JSON? All it is a fancy string that is easy to build?
I see a great benefit to such libraries.
Structures can get pretty complicated and I don't think it's much different than building up HTML or XML in string buffers. It's much better to build up a Java strucxture (be it a DOM or otherwise) and then serialize it.