example :
<script>
var TEST = { "contextData" :
{id:01,title:one},{id:02,title:two},{id:03,title:three}}
</script>
how to get all title ? using PHP Simple HTML DOM Parser, I just have no idea to do this.
The following is not tested but should work:
$script = $html->find('script', 0);
preg_match_all
as suggested by @pguardiario, to get the titles value: /title\s*:\s*([^}]+)/
EDIT:
And to get all titles and desc (different of qwerty) modify the pattern to: /(title|desc)\s*:\s*(?!qwerty)([^},]+)/