do we have something like what Golang has the json annotation?
type FieldType struct {
TypeName string `json:"typeName"`
CodeType string `json:"codeType"`
Suffix string `json:"suffix"`
PropertiesRaw json.RawMessage `json:"properties"`
Properties FieldTypePropertyMap
}
I have a json string:
{ "long_name":"dffdf" }
My class:
public class Result
{
public int LongName {get; set;}
}
Because of the underscore, the LongName is always null and I do not want to use underscore in my class property.
Is there an option to ignore the underscore when deserializing?