String to Json in scripting

Anyone here has a idea on how to convert STR to JSON . Like This
"[{ "a":1,"b":2 }]" to this [{ "a":1,"b":2 }]

Try system.util.jsonDecode(jsonString)

1 Like

i will try