Helper string to obj

Hi @patrick,

Do you have a helper to convert a string to obj laying around in AC that I can reuse? If not I can write my own.

backend="{loadPath:'/locale/file.json'}"

Probably not what you are looking for:
But, if the string can be set to backend='{"loadPath":"/locale/file.json"}', you can use JSON.parse(backend).

Yep. That’s the main thing. Adding the double quotes to keys and values, and also changing single to double.

I chained two replaces to cover simple cases but I was wondering if Patrick had already written a helper to cover all cases given that they already pass stringified objects via the attributes for other components.