Skip to content
Advertisement

SQL to JSON – array of objects to array of values in SQL 2016

SQL 2016 has a new feature which converts data on SQL server to JSON. I am having difficulty in combining array of objects into array of values i.e.,

EXAMPLE –

RESULT –

But I want the result as –

Can somebody please help me out?

Advertisement

Answer

Thanks! The soultion we found is converting into XML first –

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement