modyfing comparing methods to JsonObject