jp
jp copied to clipboard
Add line number to JSON parse error
Sometimes I end up feeding jp invalid json, and ...
This possibly has performance implications, though?
(apologies if I've done something silly here - still learning how to use Go - can add tests if this is judged useful)
EDIT: added a couple of tests.
LGTM