added a json builder class