Below is my array :
var.child.Cars1 = { name:null,operation:0,selected : false}
Now in above array,selected property represent check/uncheck status of checkbox and i am posting above array to web service(WCF) as string using json.stringify.
Above array contains 2000 - 4000 records and now user can check/uncheck checkboxes.
Now consider there are 4000 records in above array in which there are 2000 records which are checked and 2000 records are unchecked and in my web service i am processing only those records which are checked.I remove records with selected value as false.
Now as due to 4000 records its a huge json string and because of that i get error from web service end :
Error : (413) Request Entity Too Large
Now reason why i am not filtering out records with selected as flase is because it will create lots of overhead on client browser and can even hang browser so right now i am doing it on server side.
So my question is that i should filter out records with selected as false on client side and then post 2000 records only or what i am doing is the right way.
I have some question in my mind that posting such huge json string will again take some times and filtering out records with selected as false will also put lots of overhead on browser.
So i am not sure i am doing wrong or right.
Can anybody please guide me for this???