Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC6901 JSON Pointer Support #39

Open
jansupol opened this issue Nov 12, 2015 · 6 comments
Open

RFC6901 JSON Pointer Support #39

jansupol opened this issue Nov 12, 2015 · 6 comments
Labels
enhancement New feature or request
Milestone

Comments

@jansupol
Copy link
Owner

Will JSON Pointer (https://tools.ietf.org/html/rfc6901) be supported in JSON-B?

Especially JSON Pointer would be the only way to marshal/unmarshal recursive beans, e.g.

public class Bean {
  public Integer id;
  public String name;
  public Bean other;
  public List<Bean> next;
}

x = new Bean(123, "X");
a = new Bean(456, "A");
x.other = a;
x.next.add(x);
x.next.add(a);

must marshal to JSON

{
  "id": 123,
  "name": "X",
  "a": { "id": 456, "name": "A", "next": [ ] },
  "next": [
    { "$ref": "#" },
    { "$ref": "#/a" }
  ]
}

and the same JSON must unmarshal into the original Bean.

@jansupol
Copy link
Owner Author

@glassfishrobot Commented
Reported by heruan

@jansupol
Copy link
Owner Author

@glassfishrobot Commented
Issue-Links:
is duplicated by
JSONB_SPEC-34

@jansupol
Copy link
Owner Author

@glassfishrobot Commented
@m0mus said:
This topic is under discussion at the moment.

@jansupol
Copy link
Owner Author

jansupol commented Aug 5, 2016

@glassfishrobot Commented
@m0mus said:
This feature required JSONP 1.1. We are currently ahead of JSONP, so deferring it to JSONB 2.0.

@jansupol
Copy link
Owner Author

@glassfishrobot Commented
This issue was imported from java.net JIRA JSONB_SPEC-39

@jansupol
Copy link
Owner Author

@jansupol jansupol added the enhancement New feature or request label May 23, 2018
@jansupol jansupol added this to the 2.0 milestone May 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant