Refactored JsonObject and toString