json header added in json handler

Returning json headers when it is json!