Skip to content

Trailing commas #802

@Shahroz16

Description

@Shahroz16

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions