views:

107

answers:

1

I am using ajax.net to return an array of records. Some request can be very large and need to be sent with several requests. Is the a way to determine if the json length of an object exceeds the max length before it throws an exception so I can divide the records into smaller returns?

A: 

Probably the easiest way is to serialize the object server side before returning the request and checking the serialized string length before returning it.

lomaxx