c# - Dynamic JsonIgnore for properties within a list -
i using json.net library. have json looks this: "templates": [ { "name": "default fields 1", "fields": [16, 10, 0, 4, 5, 11, 12, 7, 15, 17, 9, 25, 3], "formats": [ "string", "datetime", "leftzeropaddedstring13", "2dp", "2dp", "2dp", "2dp", "int", "int", "string", "int", "int", "int", "int" ] }, { "name": "default fields 2", "fields": [3, 25, 9, 17, 15, 7, 12, 11, 5, 4, 0, 10, 16], "formats": [ "int", "int", "int", "int", "string", "int", "int", "2dp", "2dp", "2dp", "2dp", "leftzeropaddedstring13", "datetime", ...