Haskell-way of modeling a type with dynamic JSON fields?
问题 I am new to Haskell, coming from an imperative programming background. I would like to be able to serialize an object to JSON in the "Haskell way", but not quite sure how to do that yet. I have read Chapter 5 of RealWorldHaskell which talks about JSON a bit, and played around with Aeson. I have also looked at a few JSON API libraries written in Haskell, such as: Facebook API in Haskell Stripe API in Haskell That got me to the point of being able to create very basic JSON strings from objects