I have a string field that represents JSON value
{ "value": "[{"field_1": "123","field_2": "id","field_3": "qwe"}]" }
Is there a way in jolt to convert it to JSON, something like this
{ "value": [{"field_1": "123","field_2": "id","field_3": "qwe"}] }
I know format of objects in array, there always will be only three fields with same names, but the number of objects can vary
Also i wounder is there a way to do the opposite thing, like convert array to string
2
Answers
{ "value": "[{"field_1": "123","field_2": "id"}]" }
you can try this text , because your text missing a character " { "
You can use successive split and join functions as in the following specification considering the fact
there always will be only three fields with same names, but the number of objects can vary :