Reading different data type in JSON/Haskell

This is something which I encountered today while writing a server in Haskell. We were getting the value of key "age" in our JSON file as a string, though we wanted to have it as an Integer. After much deliberation, wasting a whole day and as well as discussing on IRC, the below solution finally … Continue reading Reading different data type in JSON/Haskell