public static PersonData CreateFromJson(JsonSerializer serializer, string str) { PersonData p = serializer.Deserialize <PersonData> (new JsonTextReader(new StringReader(str))); p.computeLocalValues(); return(p); }