I've run into a serious issue and I don't know if I am overlooking
something.

When retrieving ids with cursoring, and then doing a PHP json_decode
on the data, the cursor value is converted to an exponentional number
expression.

For example:

http://twitter.com/followers/ids/barackobama.json?cursor=-1

yields "next_cursor":1314614526448841129 in the raw JSON data.

After json_decode the value is converted to 1.31461452645E+18.

I've tried both json_decode to an object and to an associative array
and both give the same result.

As you will notice, even if one were to typecast that number to float,
there is still 8 digits missing, which would yield an invalid cursor.

So, am I missing something glaringly obvious, or does someone have a
solution to this issue?

Dewald

Reply via email to