Ver Mensaje Individual
  #17 (permalink)  
Antiguo 22/04/2010, 14:44
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: Servicio web REST

Tu problema ya es en el cliente, no en el servidor y si ya tienes el array decodificado con json solamente es que lo modifiques o asignes a otra variable, pero en tu cliente:
Código PHP:
Ver original
  1. $ch = curl_init();
  2.  
  3. curl_setopt($ch, CURLOPT_TIMEOUT, 10);
  4. curl_setopt($ch, CURLOPT_URL, $url);
  5. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  6. curl_setopt($ch, CURLOPT_HTTPHEADER, array ('Accept: '."JSON");
  7.  
  8. $respuesta = curl_exec($ch);
  9. $respuesta=json_decode($respuesta);
  10. $features = $respuesta['features'];
  11.  
  12. // haces algo con $features y luego lo imprimes.

Saludos.