Skip to content
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

Malformed JSON when uses Gson #212

Open
vishalbhanderii opened this issue Mar 22, 2022 · 1 comment
Open

Malformed JSON when uses Gson #212

vishalbhanderii opened this issue Mar 22, 2022 · 1 comment

Comments

@vishalbhanderii
Copy link

I am using GsonMessageAdapter.Factory() but i get {"type":"error","message":"Malformed JSON"} response.
Can anyone tell how to use model class with scarlet? or if any example is there to use gson in scarlet

@aaronweihe
Copy link
Collaborator

can you share the response? if you are using Gson, just install the Gson adapter factory. refer to https://github.com/google/gson on how to annotate your model classes to work with Gson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants