Records to/from JSON

Remi Forax forax at univ-mlv.fr
Thu May 7 22:25:11 UTC 2020


That's weird,
Jackson already has the concept of library that are dynamically added, for java.time in Java 8 by example.

Rémi

----- Mail original -----
> De: "Alex Buckley" <alex.buckley at oracle.com>
> À: "amber-dev" <amber-dev at openjdk.java.net>
> Envoyé: Jeudi 7 Mai 2020 23:35:07
> Objet: Re: Records to/from JSON

> On 5/7/2020 1:27 PM, Brian Goetz wrote:
>> There's a nice writeup of using records with Jackson here:
>> 
>> https://angiejones.tech/?p=5434
> 
> I cringed when I saw `@JsonProperty` annotations duplicating the record
> component names (shades of `@PathParam("id") String id;` from JAX-RS)
> but it seems like the Jackson team is on its way to not needing them.
> 
> A critical issue for the Jackson team seems to be detecting that a class
> is a record without using `Class::isRecord`, because it doesn't exist on
> Java 8. Multi-Release JARs, documented in JEP 238, would help Jackson here.
> 
> Alex


More information about the amber-dev mailing list