<?php
header('Content-type: application/json');
$json = file_get_contents("http://twitter.com/status/user_timeline/lindsaylohan.json?count=1");
$temp = json_decode($json);
$array = Array();
$array[] = $temp;
echo json_encode($array);
?>
I have a JSON parser in my iphone app. I'm using the above PHP code to try and search Twitter. Can anyone tell me the best way to search the web or get twitter results and return them to my app? I've tried YQL but could not get on with it. All i want is raw text returned to my app. Almost like RSS feeds