open-source-parsers/jsoncpp

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

Open

#335 geöffnet am 20. Aug. 2015

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C++ (2.602 Forks)batch import
enhancementhelp wanted

Repository-Metriken

Stars
 (7.542 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 18h 26m) (10 gemergte PRs in 30 T)

Beschreibung

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