List of usage examples for javax.json JsonObject equals
boolean equals(Object o);
From source file:org.kitodo.production.forms.IndexingForm.java
private boolean isMappingEqualTo(String mapping) { try (JsonReader mappingExpectedReader = Json.createReader(new StringReader(mapping)); JsonReader mappingCurrentReader = Json .createReader(new StringReader(indexRestClient.getMapping()))) { JsonObject mappingExpected = mappingExpectedReader.readObject(); JsonObject mappingCurrent = mappingCurrentReader.readObject().getJsonObject(indexRestClient.getIndex()); return mappingExpected.equals(mappingCurrent); } catch (IOException e) { return false; }/*ww w. j a va 2 s .c o m*/ }