Loading JSON into a set of nested index-able structures

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

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
participants (1)
-
Carl Petersen