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

setLenient #132

Closed
IgorGanapolsky opened this issue Feb 11, 2016 · 6 comments
Closed

setLenient #132

IgorGanapolsky opened this issue Feb 11, 2016 · 6 comments

Comments

@IgorGanapolsky
Copy link

I am using Moshi with Retrofit2 by doing:

            .addConverterFactory(MoshiConverterFactory.create(moshi))

However, Logcat shows an error:

Error: java.io.IOException: Use JsonReader.setLenient(true) to accept malformed JSON at path $

How do I set this with Moshi?

@swankjesse
Copy link
Collaborator

We’ll need to add this to Retrofit 2’s MoshiConverterFactory.

@AlokBansal8
Copy link

@swankjesse any progress?

@JakeWharton
Copy link
Collaborator

This was added. It will be in the next Retrofit release.

On Sat, Mar 5, 2016, 6:25 PM Alok Bansal notifications@github.com wrote:

@swankjesse https://github.com/swankjesse any progress?


Reply to this email directly or view it on GitHub
#132 (comment).

@cosic
Copy link

cosic commented Mar 22, 2016

While you didn't release a new version of retrofit is there only one solution to downgrade the retrofit version up to 2.0.0-beta3?

@JakeWharton
Copy link
Collaborator

There is a new release of Retrofit.

On Tue, Mar 22, 2016, 3:48 AM Aleksandr Mirko notifications@github.com
wrote:

While you didn't release a new version of retrofit is there only one
solution to downgrade the retrofit version up to 2.0.0-beta3?


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#132 (comment)

@iampopal
Copy link

tray asLenient()
.addConverterFactory(MoshiConverterFactory.create(moshi).asLenient())

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

6 participants