fix api header as json