jansupol / jsonbapi

0 stars 0 forks source link

RFC6901 JSON Pointer Support #39

Open jansupol opened 8 years ago

jansupol commented 8 years ago

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 commented 6 years ago
jansupol commented 8 years ago

@glassfishrobot Commented Reported by heruan

jansupol commented 8 years ago

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

jansupol commented 8 years ago

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

jansupol commented 8 years ago

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

jansupol commented 7 years ago

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