Fix issue #227, where JSON arrays were blowing up SanitizeData