I am writing a cursor to populate data in new table from main table which contains data in below manner
Item Colors Shirt
Starting from SQL Server 2016 it could be done with OPENJSON and JSON_VALUE functions.