Skip to content

Exclude nested data? #1

@aim12340

Description

@aim12340

I'm trying to extend your code to ignore nested data.

E.g. I have a product -> part -> supplier setup, and I want the product and part serialized but not the supplier.

When serializing a product I'd like to be able to use something like
jsSettings.ContractResolver = new IgnorePropertiesResolver(new[] { "part.supplier" });

I know I can use just "supplier" but that's open to side effects as it doens't specify a particular property.

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions