Friedrich Ulrich created JOHNZON-280: ----------------------------------------
Summary: Removing an entry from an array in an object with more than one array fails Key: JOHNZON-280 URL: https://issues.apache.org/jira/browse/JOHNZON-280 Project: Johnzon Issue Type: Bug Components: Core Affects Versions: 1.1.13, 1.1.12 Reporter: Friedrich Ulrich Code to reproduce: {{JsonObject base = Json.createObjectBuilder()}} {{ .add("foo", Json.createArrayBuilder().add("foo").add("bar").build())}} {{ .add("bar", Json.createArrayBuilder().build())}} {{ .build();}} {{ JsonPatch p = Json.createPatchBuilder().remove("/foo/0").build();}} {{ p.apply(base);}} {{Throws an execption:}} {{javax.json.JsonException: '[]' contains no element for index 0}} -- This message was sent by Atlassian Jira (v8.3.4#803005)