json-iterator / java

jsoniter (json-iterator) is fast and flexible JSON parser available in Java and Go
http://jsoniter.com/
MIT License
1.51k stars 519 forks source link

Basic support of Java 16 records #312

Open mxyns opened 2 years ago

mxyns commented 2 years ago

This pull request tries to address the issue #302

This solution uses the Record's canonical constructor by default to create instances of the Records. Other constructors can be used with @JsonCreator and @JsonProperty (see added tests in src/test/java/com/jsoniter/TestRecord.java).

Brixomatic commented 2 years ago

I've included this in my pull request https://github.com/json-iterator/java/pull/325 thanks a lot!

schrepfler commented 1 year ago

Any chance this can be accepted @svobol13 and released? I've noticed the fempoframework is maintaining a fork with a bit of additional work, perhaps @shaoxt can pick up some maintainer responsibilities?