Is it possible to assign a global setting to AddJsonOptions
to not allow duplicate values to be passed?
For example, if I send the following JSON I want the JSON not to validate.
{
"firstName": "Bob",
"firstName": "Smith",
"firstName": "Bobby",
}
I'd assumed there would be a setting somewhere in AddJsonOptions
somewhere but I can't find anything. I'd be happy to hear if this is possible any other way if not in AddJsonOptions
.