I'm not sure if I'm in the right place for this, but I was wondering if anyone has tried to serialize ES as JSON using ASP.NET AJAX?
With ASP.NET AJAX, I'm trying to send a JSON object from browser (Javascript) to a Webservice (ASMX). The JSON object is going into the web service method ok, but it seems like the jsonSerializer is choking on all the "upto[Methodname]" childs in the entity class.
I get the error: RecursionLimit exceeded.
If anyone has tried this with ES and succeeded, I would love to know what to do to get past this error.
I've also tried using Newtonsofts JSON.Net object and it also doesn't like all the children.
I've tried, fairly successfully, to use Jayrock's JSON implementation, and it does work for the most part. But it only seems to work when I send individual arguments back to the Jayrock handler. When I try and send a JSON object, I get an error.
Essentially, I need to send a single JSON object back to the .Net handler because I need to send any number of arguments back to the class, and I won't know ahead of time how many arguments I'll need, so it is done dynamically. I hope I not too confusing, but the JSON object will contain the arguments and I will loop through them and send them to my entity to retrieve the appropriate data.
Thanks,
King Wilder
http://www.kingwilder.com