@Override public JsonObject remove() { if (!contains()) { throw new JsonException(JsonMessages.NODEREF_OBJECT_MISSING(key)); } return Json.createObjectBuilder(object).remove(key).build(); }
if (value == JsonValue.NULL) { if (targetJsonObject.containsKey(key)) { builder.remove(key);
@Override public JsonObject remove() { if (!contains()) { throw new JsonException(JsonMessages.NODEREF_OBJECT_MISSING(key)); } return Json.createObjectBuilder(object).remove(key).build(); }
if (value == JsonValue.NULL) { if (targetJsonObject.containsKey(key)) { builder.remove(key);
private JsonValue applyJsonObjectPatch(JsonObject jsonObject, JsonObject patch) { JsonObjectBuilder builder = new JsonObjectBuilderImpl(jsonObject); for (Map.Entry<String, JsonValue> patchAttrib : patch.entrySet()) { String attribName = patchAttrib.getKey(); if (patchAttrib.getValue().equals(JsonValue.NULL)) { builder.remove(attribName); } else { JsonValue originalAttrib = jsonObject.get(attribName); if (originalAttrib == null) { builder.add(attribName, patchAttrib.getValue()); } else { builder.add(attribName, applyPatch(originalAttrib, patchAttrib.getValue())); } } } return builder.build(); }
private JsonValue applyJsonObjectPatch(JsonObject jsonObject, JsonObject patch) { JsonObjectBuilder builder = new JsonObjectBuilderImpl(jsonObject); for (Map.Entry<String, JsonValue> patchAttrib : patch.entrySet()) { String attribName = patchAttrib.getKey(); if (patchAttrib.getValue().equals(JsonValue.NULL)) { builder.remove(attribName); } else { JsonValue originalAttrib = jsonObject.get(attribName); if (originalAttrib == null) { builder.add(attribName, patchAttrib.getValue()); } else { builder.add(attribName, applyPatch(originalAttrib, patchAttrib.getValue())); } } } return builder.build(); }
@Override public JsonObject remove() { if (!contains()) { throw new JsonException(JsonMessages.NODEREF_OBJECT_MISSING(key)); } return Json.createObjectBuilder(object).remove(key).build(); }
@Override public JsonObject remove() { if (!contains()) { throw new JsonException(JsonMessages.NODEREF_OBJECT_MISSING(key)); } return Json.createObjectBuilder(object).remove(key).build(); }
@Override public JsonObject remove() { if (!contains()) { throw new JsonException(JsonMessages.NODEREF_OBJECT_MISSING(key)); } return Json.createObjectBuilder(object).remove(key).build(); }
@Override public JsonObject remove() { if (!contains()) { throw new JsonException(JsonMessages.NODEREF_OBJECT_MISSING(key)); } return Json.createObjectBuilder(object).remove(key).build(); }
if (value == JsonValue.NULL) { if (targetJsonObject.containsKey(key)) { builder.remove(key);
if (value == JsonValue.NULL) { if (targetJsonObject.containsKey(key)) { builder.remove(key);
if (value == JsonValue.NULL) { if (targetJsonObject.containsKey(key)) { builder.remove(key);
if (value == JsonValue.NULL) { if (targetJsonObject.containsKey(key)) { builder.remove(key);