I have this content in a table in a column JsonResponse:
{
"results": {
"meta": {
"number_of_node": 2
},
"data": {
"Node": [
{
"id": "44511",
"subject": 31366
},
{
"id": "72176",
"subject": 36508
}
],
}
}
}
I'm trying to extract ALL the "subject"; here my query:
SELECT
JSON_VALUE(JSonResponse, '$.results.data.Node.subject') AS JsonResponse
FROM
Table
but the query result is always null.
I didn't find documentation about querying nested Json, any tips?
Thanks!
OPENJSON?