[Haskell-cafe] Simple GUI library to view JSON?

Clark Gaebel cgaebel at csclub.uwaterloo.ca
Mon Feb 20 20:24:11 CET 2012


You could set up a simple web server (with, for example, Yesod [1]) serving
up your JSON data, and then just connect to it with Firefox and use
JSONView.

[1] http://www.yesodweb.com/

On Mon, Feb 20, 2012 at 2:01 PM, dokondr <dokondr at gmail.com> wrote:

> Please advise on a simple GUI library to display JSON data. A library that
> is easy to build both on Win, Linux and OsX. I need a scrollable view to
> show a list of JSON objects. Every object may contain other objects
> (recursively). List may have thousands of objects. Fields may have very
> long text values, so the view must also be scrollable in horizontal
> dimension.
> JSON object view should be click-able and look like on this example:
> {
>     hey: "guy",
>     anumber: 243,
>     - anobject: {
>         whoa: "nuts",
>         - anarray: [
>             1,
>             2,
>             "thr<h1>ee"
>         ],
>         more: "stuff"
>     },
>     awesome: true,
>     bogus: false,
>     meaning: null,
>     link: "http://jsonview.com",
> }
>
> Where '-' before the field object indicates that object was expanded and
> '+' means collapsed object.
> Clicking on expanded fields should collapse them and vice verse. So for
> this example, clicking on 'anobject' should result in:
> {
>     hey: "guy",
>     anumber: 243,
>     anobject: {    ... }
>     awesome: true,
>     bogus: false,
>     meaning: null,
>     link: "http://jsonview.com",
> }
>
> In short I need a view similar to the one provided by JSONView plugin for
> Firefox:
> https://addons.mozilla.org/en-US/firefox/addon/jsonview/
>
> Thanks a lot for any info, comments and ideas about this project!
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120220/0751699a/attachment.htm>


More information about the Haskell-Cafe mailing list