Closed semio closed 6 years ago
dhall-to-json doesn't work when we supply an association list where the mapValue itself is an association list. For example
dhall-to-json
mapValue
[ { mapKey = "somekey", mapValue = [ { mapKey = "\$gt", mapValue = 100 } ] } ]
was converted to
{ "somekey": [ { "mapKey": "$gt", "mapValue": 100 } ] }
but I guess the expected output should be:
{ "somekey": { "$gt": 100 } }
Is it possible to make the conversion recursive so that it would generate the expected result? I am new to dhall (and Haskell) so please correct me if I am wrong.
@semio: Yes, this is fixable to behave the way you expect. Let me take a stab at it
dhall-to-json
doesn't work when we supply an association list where themapValue
itself is an association list. For examplewas converted to
but I guess the expected output should be:
Is it possible to make the conversion recursive so that it would generate the expected result? I am new to dhall (and Haskell) so please correct me if I am wrong.