I am trying to deserialize some JSON that is sometimes an array and sometimes an object. It must be generalized due to project constraints. I looked at this Stack Overflow quest