Added convertion between Java objects and JSON.