David
David

Reputation: 850

Android JSON limiting rows

Currently in my application I get a JSON object with an JSON Array in it. Is it possible to limit the rows (request header?) before data is returned from the server to client ?

Thanks,

David

Upvotes: 0

Views: 60

Answers (1)

There is no general way to limit the amount of data returned in an HTTP request.

If your API specifies a way to do it (such as a request header) then use that. If not, there is no way to prevent the server from sending more data than you want.

Upvotes: 1

Related Questions