json-formatter icon indicating copy to clipboard operation
json-formatter copied to clipboard

Ability to change size limit (default <1mb)

Open ZephD opened this issue 6 years ago • 4 comments

I often view larger json files and the collapsing of fields is very useful.

ZephD avatar Jul 18 '18 09:07 ZephD

I worked on a warning for JSON files over 3MB in PR #19 since that was the default shown in the source. I agree that an option to change the size limit would be helpful so I could also work on that customization.

acupoftee avatar Sep 28 '19 21:09 acupoftee

Is the ability to customize the size limit still being worked on? Would it be possible to consider removing the limitation as well?

MandyJCho avatar Oct 07 '19 16:10 MandyJCho

Is the ability to customize the size limit still being worked on?

Yup!

I agree that the limit should be removed as well. I believe the intent of adding a limit in the original repo had to do with Chrome's caching. It'd be more practical to have no limits for developers to analyze JSON of any size.

acupoftee avatar Oct 07 '19 18:10 acupoftee

If you also want to submit a PR without the limitation that'd work too 👍

acupoftee avatar Oct 07 '19 18:10 acupoftee