I am trying to convert a JavaScript string into a workable JavaScript object without using the eval(). For example, convert a string like this:
beforeMagic="{{height: { type: String, default: \"auto\", realType: \"cssHeight\", required: false }, title: { type: String, required: true}}"
to
afterMagic= { height: { type: String, default: "auto", realType: "cssHeight", required: false }, title: { type: String, required: true } }