How to let an ASMX file output JSON?

I created an ASMX file with a code behind file. It's working fine, but it is outputting XML. However, I need it to ...