News for hackers. Stuff that matters.
Re:Specifying JSON by drewda on Thursday May 19, 2016 @11:34AM (#11730971)
I've also been surprised that there are no JSON editors that are both powerful and attractive. The one that comes closest in my experience is http://www.jsoneditoronline.org/ but I'd appreciate pointers to any others.

Unlike XML and UML, there's just less of a market for GUI-like editors for JSON?

Re:Specifying JSON by tracker1 on Thursday May 19, 2016 @12:50PM (#11731560)
I found one (windows based) a while back, but cannot for the life of me remember the name... really liked it. It was similar to XML Notepad from MS, but for JSON. Unfortunately the name of it was NOT "JSON Notepad" which would have made it far easier to find again. :-(

Something that would also be nice, if anyone comes up with such a beast would be the ability to edit a multi-record json file... effectively each line is a single JSON, and an LF at the end of each line/record. I've used this structure a few times. Given that JSON will typically encode special characters allowing for single-line representation by default, it's worked really well, especially combined with gzip as a stream for archiving data.

If anyone knows what that program was, would love to find it again.

Re:Specifying JSON by TMSZ on Friday May 20, 2016 @12:58PM (#11739445)
I hope this would be JSONedit as it is mine ;) - http://tomeko.net/software/JSONedit/ There are also - I think two different - plugins for Notepad++, JsonViewer: https://jsonviewer.codeplex.com/, commercial: XMLSpy and JSONBuddy and one or two half-baked projects on codeproject.
Re:Specifying JSON by tracker1 on Friday May 20, 2016 @01:48PM (#11739923)
That may well have been it, thanks. Will need to get WINE setup, so I can give it a try.

Tweeted it... It's funny, but I often use twitter to tweet about stuff, just so that I can find them later.

Re:Specifying JSON by chriswarbo on Thursday May 19, 2016 @12:52PM (#11731570)
A word of caution: some editors will choke on large files or, in particular, long lines.

Opening a one-line JSON file of a few MB in Emacs can be painful. The editor struggles to handle the long line and the matching-parenthesis-highlighter runs its stack machine down the whole length looking for the closing delimiter.

There are ways to avoid this, like pretty-printing the JSON across multiple lines, or forcing fundamental-mode when large files are opened, but I still haven't set these up as default.

Re:Specifying JSON by TMSZ on Friday May 20, 2016 @12:36PM (#11739264)
(Emacs) That's weird. Smart editor should render only portion visible to user and number of lines should not make any difference for highlighter. I've checked Scintilla with 3MB single-line JSON and using C++ lexer (actually: "Lexer for C++, C, Java, and JavaScript") and it has no problems except for some lack of fluency when scrolling horizontally.
Re:Specifying JSON by jerf on Thursday May 19, 2016 @12:35PM (#11731434)
You know, I don't really edit JSON very often. Generate and consume it by the gigabyte, sure, but I'm not actually editing it.
Re:Specifying JSON by TMSZ on Friday May 20, 2016 @12:45PM (#11739332)
Different uses I guess. I'm using JSON for configuration purposes (~100kB...4MB PABX config, but Azure seems to be more popular example) and it's read-modify-update cycle > 95% of the time.
Re:Specifying JSON by was8309 on Thursday May 19, 2016 @01:50PM (#11732119)
i've been happy with using Jeremy Dorn's as a start : https://github.com/jdorn/json-editor
Re:Specifying JSON by abraae on Thursday May 19, 2016 @04:22PM (#11733466)
jdorn's (awesome) tool is a dynamic UI builder where the fields, headings, constraints are pulled from a json schema document (which is also a json document).

I believe the question was about good editors for json documents.