I am implementing some AJAX which requires JSON to be returned from the server (in .NET4) but I'm a little confused on the pro's & con's of using either a custom HTTPHandler or a WCF service.
Can anyone shed some light on which would be best for a medium/large scale application which is based almost entirely around AJAX?
UPDATE
In my current use case I would need to supply a custom object to a JQuery plugin, so I would be faced with a choice between replicating these objects in .NET and then using WCF to serialize them which seems a bit of an extra unneeded step in this case. So I will go with the "string builder"/HTTPHandler model for JQuery interaction but will bear in mind the WCF method if I need to represent .NET objects on the client.
Thank you for the response.