underscore
underscore

Reputation: 6887

what is the ajax response limit of json?

I'm trying to get a JSON as a AJAX response when entering to the site .But i want to know is there any length of object that i can get ? GET or POST ?

$http({
    method: 'POST',
    url: 'php'
}).success(function (data, status, headers, config) {

Does browser limiting it ? or any restriction from server side ?

Does it depend on browsers ?

  1. Firefox
  2. Chrome
  3. IE
  4. Opera

Upvotes: 3

Views: 2980

Answers (1)

Rory McCrossan
Rory McCrossan

Reputation: 337627

There is no limit to the size of data which can be transferred via JSON. However, a large request, for example anything over 1Mb, will take a long time to receive and even longer for the browser to deserialise.

Upvotes: 4

Related Questions