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.  <br>
<br><div class="gmail_quote">On Mon, Feb 20, 2012 at 10:24 PM, Clark Gaebel <span dir="ltr">&lt;<a href="mailto:cgaebel@csclub.uwaterloo.ca">cgaebel@csclub.uwaterloo.ca</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<font face="verdana,sans-serif">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.<br><br>[1] <a href="http://www.yesodweb.com/" target="_blank">http://www.yesodweb.com/</a><br>


</font><br><div class="gmail_quote"><div><div></div><div class="h5">On Mon, Feb 20, 2012 at 2:01 PM, dokondr <span dir="ltr">&lt;<a href="mailto:dokondr@gmail.com" target="_blank">dokondr@gmail.com</a>&gt;</span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">

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.<br>



JSON object view should be click-able and look like on this example:<br clear="all">{<br>    hey: &quot;guy&quot;,<br>    anumber: 243,<br>    - anobject: {<br>        whoa: &quot;nuts&quot;,<br>        - anarray: [<br>            1,<br>



            2,<br>            &quot;thr&lt;h1&gt;ee&quot;<br>        ],<br>        more: &quot;stuff&quot;<br>    },<br>    awesome: true,<br>    bogus: false,<br>    meaning: null,<br>    link: &quot;<a href="http://jsonview.com" target="_blank">http://jsonview.com</a>&quot;,<br>



}<br><br>Where &#39;-&#39; before the field object indicates that object was expanded and &#39;+&#39; means collapsed object.<br>Clicking on expanded fields should collapse them and vice verse. So for this example, clicking on &#39;anobject&#39; should result in:<br>



{<br>    hey: &quot;guy&quot;,<br>    anumber: 243,<br>    anobject: {    ... }<br>    awesome: true,<br>    bogus: false,<br>    meaning: null,<br>    link: &quot;<a href="http://jsonview.com" target="_blank">http://jsonview.com</a>&quot;,<br>



}<br><br>In short I need a view similar to the one provided by JSONView plugin for Firefox:<br><a href="https://addons.mozilla.org/en-US/firefox/addon/jsonview/" target="_blank">https://addons.mozilla.org/en-US/firefox/addon/jsonview/</a><br>



<br>Thanks a lot for any info, comments and ideas about this project!<br><br>
<br></div></div>_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
<br></blockquote></div><br>
</blockquote></div><br><br>