I would love you to show us the C++ equivalent of this trivial PHP code:
<?php
$data = json_decode(file_get_contents('data.json'));
foreach ($data as $obj) {
echo $obj->x . ',' . $obj->y . "\n";
}
That's the entire script.