open-source-parsers / open-source-parsers/jsoncpp

Provide facility for large arrays to be output over long multiple lines

Open
#335 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement help wanted
Dominant language
C++
Stars
8.9k
Forks
2.7k
Avg merge
31m
Merged PRs (30d)
1

Description

When you have a large array (let's say 1000 integers) that needs to be written out, it will be written out one int per line. It would be very useful to be able to specify how many items (or a max line length) are output per line to improve formatting and remove the need for a lot of CR's

e.g, with a max items per line of 10

{
"array" :
[
0,1,2,3,4,5,6,7,8,9
10,11,12,13,14,15,16,17,18,19
20,21,22,23,24,25,26,27,28,29
],
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating jsoncpp's array serialization and line-breaking logic; the issue names no file, test, or entry point. Clarify whether formatting should use a maximum item count, maximum line length, or both, then add coverage that demonstrates the requested multiline output for large arrays.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.