score:1

jsonresult "formats the given result as json."

by giving it a json string, you end up sending a double-serialized value to the browser. so even after jquery deserializes it, you still end up with a string rather than an object.

so rather than passing jsonresult the serialized string representation, just give it the object you want to have serialized.

return new jsonresult(ds);

Related Query

More Query from same tag