[Haskell-cafe] Simple GUI library to view JSON?
dokondr
dokondr at gmail.com
Mon Feb 20 20:55:08 CET 2012
Thanks, it is a good idea to use JSONView. Yet I also want to reuse this
code to view lists of objects in MongoDB collection. MongoDB objects are in
fact JSON, so the same code should work. I am not sure though that saving
MongoDB objects in intermediate JSON and then displaying them in JSONView
would be the best way to go.
On Mon, Feb 20, 2012 at 10:24 PM, Clark Gaebel
<cgaebel at csclub.uwaterloo.ca>wrote:
> 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/fc153e3b/attachment.htm>
More information about the Haskell-Cafe
mailing list