adding the header with json content