stripe-java icon indicating copy to clipboard operation
stripe-java copied to clipboard

Feature Request: Support pluggable JSON library

Open dcr-stripe opened this issue 2 years ago • 3 comments

Tracking issue for supporting other libraries for JSON (de)serialization.

We've had a number of requests over the years to do this, so will be using this as the main feature request to a) track support for this and b) track work in this space.

dcr-stripe avatar Apr 21 '22 15:04 dcr-stripe

maybe it's better to move to standard Java Json Binding (JSR 367)

https://javaee.github.io/jsonb-spec/

pizzi80 avatar May 25 '22 10:05 pizzi80

Good idea @pizzi80 - I think in general we want to support a more pluggable JSON infrastructure, so this could certainly fall under that. I don't think we necessarily want to only support one library since we'll have the same problem we have today where folks are pulling in a different library through their app framework and don't want to need two JSON libraries.

dcr-stripe avatar Jun 28 '22 14:06 dcr-stripe

Yes I know... actually this is the biggest error of Java as a language in the last decade Now they've finally fixed it with Json Binding, so probably frameworks will slowly move to jsonb but it will require another decade :rofl:

I hope that develop a json agnostic library will not require too much effort for you

pizzi80 avatar Jun 28 '22 15:06 pizzi80