Say I have following JSON:
{"MyPerson":{"Firstname":"First","Lastname":"Last","Where":{"Street":"Street","Number":15}},"AnotherComplexObject":{"Another":"Yes","Me":"True"},"Count":1,"Start":2}
I remove starting {
and ending }
and get:
"MyPerson":{"Firstname":"First","Lastname":"Last","Where":{"Street":"Street","Number":15}},"AnotherComplexObject":{"Another":"Yes","Me":"True"},"Count":1,"Start":2
Now, what regex would I use to get "complex objects" out, for example in that JSON I would want to get these two results:
{"Firstname":"First","Lastname":"Last","Where":{"Street":"Street","Number":15}}
{"Another":"Yes","Me":"True"}
The closest I've came to solution is this regex {[^}]*}
but that one fails to select }
in that "Number":15
result.