Extract the portion of a json string from a string

for example, I have a string "abaafedf {"name": peter, "jobs": {"title": "supervisor", "age": 45}}"
I want to extract the {"name": peter, "jobs": {"title": "supervisor", "age": 45}} with the regular. I don"t know how to write this regular expression

.

\ {. * (? =\})\}


var a = 'abaafedf{"name":peter,"jobs":{"title":"supervisor","age":45}}';
a.substring(a.indexOf('{'), a.indexOf('}', a.length - 1) + 1);

s.match(/{.+}/g);
Menu