Added a little bit of JSON functionality.