How do I change text format? please help

How to convert text

C1,C2\n1,1\n2,2
in to [[“C1”,“C2”],[“1”,“1”],[“2”,“2”]]

input data - C1,C2\n1,1\n2,2
output data - [[“C1”,“C2”],[“1”,“1”],[“2”,“2”]]

Please Guide me

@Taifun please guide me in this regarding

1st make your text like that by join text before and end…

[[“C1,C2\n1,1\n2,2”]]

now use replacement text block to replace

, to “,”
\n to “],[”

then you got
[[“C1”,“C2”],[“1”,“2”]…length of list…