updated regex for detecting json content type