'; } else { //echo $json; } curl_close($ch); //process the response json $result=json_decode($json, true); // note that php5 has this function natively but gl only has php4 so we have to include the JSON.php lib above. // note that this is the ONLY page where it is built server-side and it is trivially simple. all the other pages just take the json and build it client-side. // the dot is the php concatenation operator //print_r($result); //see here the structure off the return - a one member array of an object // see in action with 721mongodb2o_test.php?q=politician - this is a verion using print_r echo "