federomero / pretty-json

Atom plugin. Format JSON documents.
MIT License
94 stars 23 forks source link

Feature Request: Add support for JSONL #65

Open jeffdupont opened 7 years ago

jeffdupont commented 7 years ago

A JSONL file has a new JSON object on each line. It would be nice if support for this was added. It could read the file line by line, avoiding empty lines, and formatting each object using the current prettifier. If a line is invalid JSON, then the parsing error can be thrown.

I've been coming across a lot more files of this type where they're not provided as a JSON array, but formatted line by line for consumption.

lexicalunit commented 7 years ago

Interesting. Yeah that shouldn't be too hard to support.

jthornbrue commented 6 years ago

+1 vote for this feature