Skip to content

Print large arrays in a grid #36

@iva2k

Description

@iva2k

I like NeatJSON - great package!

I encountered a need to display JSON objects containing an array with 1000 to 2000 numbers. I was able to make NeatJSON to print it in one line or one column only, nothing else.

It would be extremely useful to have it print arrays in lines with as many numbers as fit across the given width, and end up with a more compact display. 1000 numbers can be 25 numbers by 40 lines - much better than 1000 lines vertically or 8000 chars horizontally with extremely long scrollbar.

A separate setting of how many elements to print across can be useful (e.g. when the data has certain repetition, and width limit is chosen for other reasons) .

A separate setting to pad all Array elements to the same width can be useful (so they show up aligned in columns).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions