google / google/gson

Ignore trailing commas as a builder parameter

Open
#1,446 1 comment 13 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
24.2k
Forks
4.5k
Avg merge
6d 4h
Merged PRs (30d)
12

Description

Following up from [this closed request](
https://github.com/google/gson/issues/494).

`GsonBuilder` should have a new property `ignoreTrailingCommas()`.

Most of the JavaScript[0] ecosystem, and a lot of new languages have adopted the usecase of ignoring trailing commas. While not part of the true JSON specification it would be very convenient to move GSON forward with the rest of the ecosystem.

[0] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Trailing_commas

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.