correct content type json detection