On Tuesday, May 15, 2018, reader 1001 <
007reader@gmail.com> wrote:
Yes, I realized it by now, thank you.
My question remains for hierarchical keys in a JSON document. If I have a document like below, I clearly can extract key1 using the described rowtype definition. How can I specify selected keys deeper in the document, e.g. key3 and key5?
{
key1:value1,
key2: {
key3:value3},
key4:[
{
key5:value5
},
{
key6:value6
}
]
}
I believe you would need a type for each subtree and apply the function multiple times with the result of one feeding the next.
David J.