check for json content type by index, no strict equality (encoding might also be included)