checking json mime type