json-snatcher
json-snatcher copied to clipboard
Does not work in large files
In large JSON files (over 20k lines) json-snatcher fails with the error Stack overflow in regexp matcher. This occurs even if you are looking at an element that is not "deep" in the hierarchy, such as the top level element.
I wrote a package that does this: https://github.com/iwahbe/jsonian, partially because I encountered the same problem. I've tested it on json files with up to 600k lines and it works fine.