Getting JSON from ASP.Net

1. The chef said, I should use a normal aspx to solve this task, and write sth, like reponse.write(„accpeti encoding : txt/json“), it is ugly. Please read this atricle from Johnny Code ( Why it is ugly.

2 by defualt .net response only to POST Request and return XML. as wrapper. You should add the following http header in your request.

Content-Type: application/json; charset=utf-8

An end the chef want to sue handler to solve the URL rewrite problme, show me some code in web.config to define a handler.
I found this article about add handler in web.config (