I have simple JSON
{"ProductUID":1100,"Color":"White","tags":["toy","children","games"]}
I want output as
[
{
"ProductUID": 1100,
"Color":"White",
"tags":"toy"
},
{
"ProductUID": 1100
"Color" : "White",
"tags" : "Children"
},
{
"ProductUID": 1100,
"Color": "White",
"tags": "games"
}
]
I have tried this query in cosmos db but couldn't separate tags array
SELECT P.ProductUID, P.tags
FROM Products P
join C in P.tags