Combining one property value to other property value as key value


Use Common Code -1 as Input in jsonata

https://jsonata.blogspot.com/2021/04/common-code-1.html

Query: 

"Phone": [
{
"type": "home",
"number": "0203 544 1234"
},
{
"type": "office",
"number": "01962 001234"
},
{
"type": "office",
"number": "01962 001235"
},
{
"type": "mobile",
"number": "077 7700 1234"
}

],

Query:Phone.{type: number} OP:[

{
"home": "0203 544 1234"
},
{
"office": "01962 001234"
},
{
"office": "01962 001235"
},
{
"mobile": "077 7700 1234"
}
]


 

No comments:

Post a Comment

calling outside object property or parent

 https://try.jsonata.org/dxPC5s-zM { "list1" : [ { "b" : 1 , "list2" : [ { ...