Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Use the <code>in_reply_to_status_id_str</code> on the status object instead. Twitter's <a href="http://groups.google.com/group/twitter-development-talk/browse_thread/thread/6a16efa375532182?pli=1" rel="nofollow noreferrer">Snowflake</a> status ID scheme produces values that are larger than the maximum integer value supported by Javascript and some JSON parsers. As a result of this, all numeric Twitter ID's that could have the potential of growing over 53 bits have <code>*_str</code> property complements.</p> <p>From the linked document:</p> <blockquote> <h2>The problem</h2> <p>Before launch it came to our attention that some programming languages such as Javascript cannot support numbers with >53bits. This can be easily examined by running a command similar to: <code>(90071992547409921).toString()</code> in your browser's console or by running the following JSON snippet through your JSON parser. </p> <pre><code>{"id": 10765432100123456789, "id_str": "10765432100123456789"} </code></pre> <p>In affected JSON parsers the ID will not be converted successfully and will lose accuracy. In some parsers there may even be an exception.</p> <h2>The solution</h2> <p>To allow javascript and JSON parsers to read the IDs we need to include a string version of any ID when responding in the JSON format. What this means is Status, User, Direct Message and Saved Search IDs in the Twitter API will now be returned as an integer and a string in JSON responses. This will apply to the main Twitter API, the Streaming API and the Search API.</p> </blockquote> <p>Other links:</p> <p><a href="https://stackoverflow.com/q/307179/210774">What is JavaScript&#39;s highest integer value that a Number can go to without losing precision?</a><br> <a href="https://stackoverflow.com/q/506200/210774">JavaScript 64 bit numeric precision</a><br> <a href="https://stackoverflow.com/q/209869/210774">What is the accepted way to send 64-bit values over JSON?</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload