Check content type and base result parsing on this value