Added JSON support using gson.