google / google/gson

print primitive array in single line or set a line width for primitive array object

Open
#2,754 8 comments 0 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

# Problem solved by the feature

When json object contains a large `int[]` or `int[][]` object, the pretty print is not useable. each element ends with newline.

# Feature description
We should have an option in `FormattingStyle` to serialize primitive array in a single line (or even better configurable line width)

# Alternatives / workarounds

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.