I have column values which is of the form of {"1":"mediaMaaadadeftch||OAISAOID|true|ModsVersio|67900|clk|true|PPOOOS|20220501164113|34958|38177557..}
This is not a json format, some values are pipe separated and some are double pipe separated, how can we write a udf which breaks this value and convert into multiple columns.
col_1|col_2|col_3|col_4|..
1|mediaMaaadadeftch|OAISAOID|true| ..