Server : SQL Server 2016
I am trying to split a delimited string in one column in DB to JSON Array for easy joins in ETL Job
shirt|~*~|trouser|~*~|t-Shirt|~*~|towels|~*~|
into JSON Value
{"values":["shirt", "trouser", "t-Shirt", "towels"]}
One of the article I followed here helped a little, but could not get me far enough, I want to convert using select instead of procedure/function
Any Pointers is helpful
SQL to JSON - array of objects to array of values in SQL 2016