If you have a sufficient PHP-Version (>=5.3
http://www.php.net/manual/en/function.json-decode.php) you can try

$array = json_decode($json, true, 512, JSON_BIGINT_AS_STRING);

I had no luck on Debian/Squeeze, so I'm using for now this quick & dirty hack:

$array = json_decode(preg_replace('/("\w+"):(\d{6,})/', '${1}:"${2}"',
$json), true);

Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 

Reply via email to