
5 Jun
2013
5 Jun
'13
8:29 p.m.
Quoting Xyne (2013-06-03 02:27:40)
Hi,
The json/haskell-json package has a cabal flag named "mapdict" which is disabled by default. I find this completely counter-intuitive as the default behavior will convert Data.Map values to JSON *list* values. With the flag enabled, Data.Map values will be converted to JSON map values as expected.
FYI, I found the Aeson package to be of better quality than all the other JSON packages I have tried. I switched to it in my JSON tool collection recently [1]. All the best, -- NP [1]: https://github.com/np/json-tools