fixed compile
set the content type when writing json response.