Ensure that payload is JSON