Skip to content

Trailing commas #802

Open
Open
@Shahroz16

Description

Thank you for a very helpful library. Is there any way to get past the trailing comma issue with moshi?

Sample json
{ "name": "Khan", "greeting": "Hello, how are you", }

If you can see there is an extra comma and moshi rightly sends out an exception.
com.squareup.moshi.JsonEncodingException: Expected name at path $.greeting

Looking for any workaround for this issue. TIA

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions