Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow custom handling of property in json that doesn't exist in object #43

Open
GoogleCodeExporter opened this issue May 19, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

Given the following Json:

{
   ID: 1,
   OldProp: "value"
}

and the following class:
public class Foo {
   public int ID { get; set; }
   public string NewProp { get; set; }
}

Give the user a way of handling the fact that "OldProp" does not exist on 
the object.  The default will be to throw an exception.  The user can 
register a custom delegate to handle missing properties.  Typical actions 
could be to ignore the missing property or assign it to a different 
property in the case of a rename refactoring.

Original issue reported on code.google.com by [email protected] on 3 Jul 2009 at 12:47

@GoogleCodeExporter
Copy link
Author

Issue 54 addresses the problem somewhat, but it only allows you to ignore the 
property 
at the moment.

Original comment by [email protected] on 16 Apr 2010 at 2:49

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant