Hi,
I am having a string like below. What I need to do is to process the string in such a way that I could get the output in a format like below.The problem I am facing here is that some elements have commas(,) within itself , so it is difficult to process it using the split() command. Can anyone suggest me a mechanism to process a string like below to a output (which I have shown).
String:
"returns=int", "operationName=doComplexStuff", var1="integer", var2="(a="integer", b="integer")", var3="(a="string", b="integer")"
output:
returns --- int
operationName --- doComplexStuff
var1 --- integer
var2 --- a -- integer
var2 --- b -- integer
var3 --- a -- string
var3 --- b -- integer