RFC 8259 support

34 views
Skip to first unread message

Michael Scalia

unread,
Feb 19, 2020, 4:44:11 PM2/19/20
to jackson-user
I'm having trouble finding which version of Jackson supports which JSON RFC. 

Which 2.x version of Jackson supports RFC 8259?

Thanks,
Michael Scalia

Tatu Saloranta

unread,
Feb 19, 2020, 4:44:53 PM2/19/20
to jackson-user
What is RFC 8259, and why do you care?

-+ Tatu +-
> --
> You received this message because you are subscribed to the Google Groups "jackson-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jackson-user...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jackson-user/33750e71-1970-4aa3-92be-2ea5ea24a05b%40googlegroups.com.

Michael Scalia

unread,
Feb 20, 2020, 11:14:29 AM2/20/20
to jackson-user
RFC 8259 is The JavaScript Object Notation (JSON) Data Interchange Format. It obsoletes RFC 7159, which in turn obsoletes RFC 4627. I believe 4627 was the original JSON specification.

I care because my server uses Jackson to parse and generate JSON. Some customers have asked about support for the more recent JSON RFCs. In particular, I've been asked about this change from https://tools.ietf.org/html/rfc7159#appendix-A:

   o  Changed the definition of "JSON text" so that it can be any JSON
      value, removing the constraint that it be an object or array.

Thanks,
Michael Scalia


On Wednesday, February 19, 2020 at 4:44:53 PM UTC-5, Tatu Saloranta wrote:
What is RFC 8259, and why do you care?

-+ Tatu +-

On Wed, Feb 19, 2020 at 1:44 PM Michael Scalia <michae...@gmail.com> wrote:
>
> I'm having trouble finding which version of Jackson supports which JSON RFC.
>
> Which 2.x version of Jackson supports RFC 8259?
>
> Thanks,
> Michael Scalia
>
> --
> You received this message because you are subscribed to the Google Groups "jackson-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jackso...@googlegroups.com.

Tatu Saloranta

unread,
Feb 20, 2020, 4:21:49 PM2/20/20
to jackson-user
On Thu, Feb 20, 2020 at 8:14 AM Michael Scalia <michael...@gmail.com> wrote:
RFC 8259 is The JavaScript Object Notation (JSON) Data Interchange Format. It obsoletes RFC 7159, which in turn obsoletes RFC 4627. I believe 4627 was the original JSON specification.

I care because my server uses Jackson to parse and generate JSON. Some customers have asked about support for the more recent JSON RFCs. In particular, I've been asked about this change from https://tools.ietf.org/html/rfc7159#appendix-A:

   o  Changed the definition of "JSON text" so that it can be any JSON
      value, removing the constraint that it be an object or array.

Thanks,

Ah. That makes sense, thank you for clarification.

I am not aware of any deviations; at least no bug reports exist. My recollection is that newer json(-related) specification do not contain major changes.

Now, with respect to that particular change, yes, Jackson does support reading of any JSON root-level value out of the box.
Same is true for things like "line-delimited JSON" (https://en.wikipedia.org/wiki/JSON_streaming -- line-delimited and concatenated JSON).

-+ Tatu +- 
 

Michael Scalia


On Wednesday, February 19, 2020 at 4:44:53 PM UTC-5, Tatu Saloranta wrote:
What is RFC 8259, and why do you care?

-+ Tatu +-

On Wed, Feb 19, 2020 at 1:44 PM Michael Scalia <michae...@gmail.com> wrote:
>
> I'm having trouble finding which version of Jackson supports which JSON RFC.
>
> Which 2.x version of Jackson supports RFC 8259?
>
> Thanks,
> Michael Scalia
>
> --
> You received this message because you are subscribed to the Google Groups "jackson-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jackso...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jackson-user/33750e71-1970-4aa3-92be-2ea5ea24a05b%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jackson-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jackson-user/1bf5b233-7344-4be6-b17a-a50df6c34eb7%40googlegroups.com.

Michael Scalia

unread,
Feb 20, 2020, 4:41:20 PM2/20/20
to jackso...@googlegroups.com
Tatu,

Thank you. Exactly what I was looking for. 

Michael 

You received this message because you are subscribed to a topic in the Google Groups "jackson-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jackson-user/nrPYUSDN2Mg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jackson-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jackson-user/CAGrxA26QGPni1t%2BH4y3UJM6VD_xSGC3r6-jzSbZfU4QPb6vvSg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages