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);
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bef2d6-31c44.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bef2d6-31c44.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?