My Json string has couple of items and I can use json_value
to get specific items and parse it. But need to know the length of items to iterate.
[
{"name":"Ram", "email":"Ram@gmail.com"},
{"name":"David", "email":"David@gmail.com"},
{"name":"Bob", "email":"bob32@gmail.com"}
]
For example JSON_VALUE(@myJsonString, N'$[1].email')
returns David@gmail.com
but I need to know the length to increment.
Am I doomed to use openjson?