3

JSON Validator for Notepad++? was closed, and none of the links there point to an actual validator for JSON data.

I don't need to reformat JSON, I want a visual cue that I've missed a comma or a bracket.

How do I make Notepad++ do this, even if only like it would in XML if I did not close a string?

Thanks!

aybiss
  • 160
  • 1
  • 1
  • 7
  • 1
    mhhhmm ... so your question is asking for an actual plugin? – bummi Jan 08 '19 at 21:17
  • @aybiss, You might try the stand-alone free JSONEdit, http://tomeko.net/software/JSONedit/ [This comment is acknowledged as off-topic because it belongs in software recommendations, so I'll delete it if desired.] – DrMoishe Pippik Jan 08 '19 at 23:04
  • 1
    @bummi well i wouldn't want to be asking for a software recommendation, but if you know of one i'll accept it as the answer :-) – aybiss Jan 09 '19 at 04:40
  • 1
    @DrMoishePippik that looks really nice but i spend half my days editing XML, JSON, INI and so many other files in Notepad++. VisualStudio itself validates JSON if you load it up, but it takes so long to load the application it's not workable. I really do need to keep using my "one-stop-shop" text editor where I've defined macros and so forth, I just want to be able to do one more thing with it. – aybiss Jan 09 '19 at 04:43
  • 1
    With the [JSON Viewer plugin](https://sourceforge.net/projects/nppjsonviewer/), you'll get an error message if the JSON is malformed. – Toto Jan 09 '19 at 13:05
  • 1
    @Toto only if you close and reopen the viewer. And there's no keyboard shortcut to close it. – aybiss Jan 09 '19 at 21:04

2 Answers2

1

You can use Codverter JSON Validator, it`s online and highly secure, everything you do is interpreted on your local computer and never sent back to the server.
the validation error messages are informative and accurate.

(Full Disclosure: I am one of the developers).

enter image description here

1

The "Format JSON" option of the JSON Viewer will give an error if the JSON is not correct and also will select the incorrect text.

If the JSON is correct it will reformat but you can use undo (Ctrl+Z) to get it back to the previous format.

zx485
  • 2,170
  • 11
  • 17
  • 24
André Kops
  • 111
  • 2