JSON使用C#关键字

JSON使用C#关键字,c#,json,C#,Json,我有一个JSON模式(来自ADP),它的JSON部分如下所示: ... "noteIndicator" : { "description" : "True indicates that the System of Record supports the user entering notes / comments. If the value is false then the notes / comments field will not be visible in the

我有一个JSON模式(来自ADP),它的JSON部分如下所示:

...
"noteIndicator" : {
          "description" : "True indicates that the System of Record supports the user entering notes / comments.  If the value is false then the notes / comments field will not be visible in the UI",
          "type" : "boolean",
          "optional" : true,
          "default" : false
        }
当我使用JSON到C#转换器时,“default”在C#中被标记为关键字,而不是字段名。我是否可以使用属性或其他方式使C#编译器不将单词“default”视为关键字,而是将其视为字段名?答案是否简单到将“default”一词改为其他词?

在C#code中与
@

冲突的名称(变量、属性或字段)前面加上前缀。您没有显示标记的C#部分。如果您喜欢这样做,那么请注意
JsonPropertyAttribute
的作用,然后您确实可以将属性的名称更改为其他名称。将自动为您执行此操作。