Hi,
please can you help me with this.......I have a json file which contains a field with name "data". Problem is that I can not create a data type with "data", (or can I)? How else can I handle this? I know I can convert all json to Object and then search for the field....but I was hoping for some friendly/easier option.
json example:
{
"data" : {
"foo" : "bar"
}
}
below definition returns: parse error on input ‘data’
data Foo = Foo {
data :: String
}
Cheers,