New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implicit Gson library dependency should be removed #1343
Labels
Comments
Hi @solatarius , thanks for the report! We generally would like to support Jackson more generally. I've split out #1344 to track this as a top-level feature request. |
maybe it's better to move to standard Java Json Binding (JSR 367) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
The
EventData
class which is defined in theEvent
object has a memberobject
of typeJsonObject
which is a type defined by thecom.google.gson
library.When I try to deserialize stored json into an
Event
object using acom.fasterxml.jackson
ObjectMapper
, errors are thrown because the object jsonString contains fields not explicitly defined by theJsonObject
.https://github.com/stripe/stripe-java/blob/master/src/main/java/com/stripe/model/EventData.java#L28
Describe the solution you'd like
The
object
field of theEventData
class should be of typeMap<String, Object>
or something similar... and anywhere else in the models whereJsonObject
is used, it should be replaced with the same solutionDescribe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: