implements json params when header is set