DevUtils-app icon indicating copy to clipboard operation
DevUtils-app copied to clipboard

Support multiple JSON lines in JSON Linter.

Open danielewood opened this issue 4 years ago • 2 comments

Quite often I'll be dealing with JSON formatted logs with lines of JSON. It would be nice if I could paste a section in and it lint all the input.

image

As a bonus, instead of showing "Invalid JSON", if it could have an option to partially-parse the JSON and highlight the syntax errors, much like VS Code does, that would be lovely. VS Code Example(removed an end quote from price):

image

danielewood avatar Oct 02 '20 05:10 danielewood

Thanks, Daniel. These are all good suggestions. The multi-lines JSON may mess-up with the "showing selected JQ path" a bit but I believe there as ways to work around that.

I'll put these all into my backlog, thanks!

trungdq88 avatar Oct 02 '20 15:10 trungdq88

This is now supported as of version 1.3.0:

  • Syntax error highlighting
  • Support multi-lines JSON (from logs or JSON stream)
  • Partially format the string where possible

This is it for now, there will be more improvements to the JSON tool in the future 😄

image

trungdq88 avatar Oct 10 '20 10:10 trungdq88