What's the Aeson equivalent of the javascript property accessor.
How would you translate the javascript statement x.a.b
to Haskell?
As an example, given someObject :: Object
containing e.g:
{ a:
{ b:
[ 1
, 2
]
}
}
What would the function that returns [1,2]
for the above look like.
I've searching around for an answer to this problem and it would appear the answer to this question is "use lenses". I just can't seem to figure out how to do this.