constructing json in JsonObject.java