json method sets response contentType as "application/json" by default