My data consists of an array of objects in the form of a string like this
"[{'key1': 'val1', 'key2': 'val2', 'key3': 'val3'}, {'key1': 'val1', 'key2': 'val2'}]"
I am trying to convert it into an actual array of objects as shown below:
[{'key1': 'val1', 'key2': 'val2'}, {'key1': 'val1', 'key2': 'val2'}]
Could someone assist me with achieving this?