return json objects; update example.php