Weekend Project

I’ve been working on the Chronism project this week, and this weekend I decided to take a little diversion.  I had been playing around with ajax some for the site’s interface, and so I was starting to some about JSON.  Since I knew I’d have to find a library to do JSON decoding and encoding in Java, and I know some about parsers, so I decided I’d right my own.  JSON is a fairly simple language and I was able to get something up and running fairly quickly.  Working off of a great guide I found for parsing JSON in C#, I wrote a class that takes in a JSON string and builds a HashMap of String Object pairs.

The class doesn’t support JSON arrays yet, and has no error reporting, but I plan to keep developing it, as I would like to have a working library for the Chronism project.  At some point I would also like to extend the functionality to encode a map into JSON as well.

If your interested in the project, I’m releasing it under LGPL and it’s being hosted here.  I’d really appriciate any feedback!

    • Ryan Beckworth
    • September 2nd, 2009

    Hey man, nice site.

  1. No trackbacks yet.