API Design · Junior · Question 22 of 75

Why might an API return large numeric IDs as strings in JSON?

Explanation

Twitter-style 64-bit IDs are a classic example. Clients shouldn't do math on IDs anyway.

Further reading

Problem with a question

API Design · Junior · question 22

Test yourself

Take the API Design · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz