Hacker News new | ask | show | jobs
by winrid 1886 days ago
Returning the length can be helpful for partial JSON parsing - determining the response size without parsing the whole thing.

More commonly it's used for pagination, in which case it's a total count.