Setting appropriate header for json.