json export has ids in exponential notation

24 views
Skip to first unread message

Matthias

unread,
Mar 29, 2011, 2:54:20 PM3/29/11
to yourTwapperKeeper, Anders Larsson
Hi!

I am working together with a colleague who has set up a twapperkeeper
and has recieved an export in json from him. Unfortunately the ids are
for some reason in exponential form.
For example, the id 49602410376736768 is represented as
"4.9602410376737E+16" in json (as a string). As you see, it is also
rounded and therefore missing the last 3 digits.
I checked the SQL and noted that the id is represented with a bigint
corresponding to 20 digits, hence it should be ok in the database
unless something goes wrong already when harvesting the tweets.
I also saw that the online demo has correct id:s, for instance in:
http://your.twapperkeeper.com/ytkdemo1/apiGetTweets.php?id=68

So, any ideas, where do I start looking? I am unfortunately not so
used to php, java and javascript is more my ballgame, so I will really
appreciate help.

Thanks,
Matthias Palmer
Reply all
Reply to author
Forward
0 new messages