I'm new to groovy and this might be very trivial. I have a string that has the exact format as groovy's map (there are also map within map).
All I want to do is just convert the string format to groovy map.
I tried the this but my string is too big for Eval.me
to compute. Is there any other way to do this?
My string has format somewhat like this:-
[
'item1':[
[
'subitem11':1,
'subitem21':'name',
'subitem31':'nametwo'
],
[
'subitem21':'1',
'subitem22':'name2'
],
[
'subitem31':'2',
'subitem32':'name3'
]
],
'item2':'itemContent',
'item3':'itemContent3',
'item4':'itemContent4',
'item5':'itemContent5',
'item6':'itemContent6',
'item7':'itemContent7',
'item7':['subitem71', 'subitem72']
]