adds json header to responses.