We are currently using a .asmx web service method which serializes our object to Json to be returned to the client and consumed by MS Ajax code. For some members of the object, we use custom converters via classes that derive from JavaScriptConverter and override the Serialize method. We "wire up" these custom converters in our web.config via the elements:
<system.web.extensions>
<scripting>
<webServices>
<jsonSerialization maxJsonLength="2000000">
<converters>
<add name="ElementReference" type="OurNamespace.OurJavascriptConverter">
We are now changing over to a WCF web service. I am unable to find the WCF equivalent.
Thanks for any help.