You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@johnzon.apache.org by "Reinhard Sandtner (JIRA)" <ji...@apache.org> on 2018/05/22 08:48:00 UTC
[jira] [Assigned] (JOHNZON-172) JsonPatchBuilder issue for a
partcuilar scenario
[ https://issues.apache.org/jira/browse/JOHNZON-172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Reinhard Sandtner reassigned JOHNZON-172:
-----------------------------------------
Assignee: Reinhard Sandtner
> JsonPatchBuilder issue for a partcuilar scenario
> ------------------------------------------------
>
> Key: JOHNZON-172
> URL: https://issues.apache.org/jira/browse/JOHNZON-172
> Project: Johnzon
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.1.7
> Reporter: Ravisankar Challa
> Assignee: Reinhard Sandtner
> Priority: Major
>
> I am adding a failing test. org.apache.johnzon.core.JsonPointerImpl line 361 is causing the issue.
> {code:java}
> @Test
> void test1() {
> JsonProvider json = JsonProvider.provider();
> JsonObject jsonObject = json.createReader(new StringReader("{" +
> " \"request\" : {" +
> " \"test\" : {}" +
> " }" +
> "}")).readObject();
> JsonPatchBuilder patchBuilder = json.createPatchBuilder();
> JsonObject result = patchBuilder.add("/name", "ravi").build().apply(jsonObject);
> assertEquals("{\"request\":{\"test\":{}},\"name\":\"ravi\"}", result.toString());
> }
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)