Thread:Project:Support desk/JSON response/reply (3)

I just want to do a "echo(json_encode($var));" but working correctly. I want to print a dinamic content that my extension creates, and the header must be set to application/json.