[Haskell-cafe] Loading JSON into a set of nested index-able structures

Carl Petersen cepete02 at gmail.com
Tue Feb 14 18:55:48 UTC 2017


Thanks for the replies!  Adam, I believe you have hit the mark, I think 
that I am attempting to use Generics for more than they are able to handle. 
 I'll have to write custom FromJson instances in order to get the results I 
am looking for.

Thanks Again,

Carl

On Thursday, February 9, 2017 at 7:14:43 AM UTC-6, Carl Petersen wrote:
>
> Hello All,
>
> I've used Aeson to load a JSON object with nested lists into a set of data 
> structures, but what I really need is to load it into a set of data 
> structures that are index-able such as a HashMap.  I've had success loading 
> the JSON into a structure with the lowest level being a HashMap using 
> !Object, but I'm having difficulty in figuring out how to nest the 
> HashMaps.  Any hints or direction would be appreciated.
>
> Thanks,
>
> Carl
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20170214/369ad8a3/attachment.html>


More information about the Haskell-Cafe mailing list