Currently, I'm utilizing angular formly to create various forms. These forms are being fetched from my database as multiple JSON objects. However, in JavaScript, I am seeking guidance on how to convert a string like the one below into an array of objects:
"{"template": "<h2>MAIN HEADING.</h2>"}, { "template": "<h4>sub heading.</h4>"}"