1

I have a custom class that has the following properties:

enter image description here

But I'm getting an error in checked because seems its a reserved word and I have to use it because the Json that I will send to client needs it.

Any clue?

VAAA
  • 14,531
  • 28
  • 130
  • 253
  • Does your JSON formatter always go lower case? You could just capitalize everything. – BradleyDotNET Nov 17 '14 at 23:06
  • How are you converting the object to JSON? Does the API you're using allow overriding the default name? That would be the best solution. Alternatively, is the JSON case-sensitive in this case? If not, then you can use `Checked` as the property name. Finally, it's possible you can use `@checked` here, but a) that's really a last resort, and b) that might not get serialized to JSON the way you want anyway. – Peter Duniho Nov 17 '14 at 23:06
  • Im using ASP WebAPI to send that to client – VAAA Nov 17 '14 at 23:07
  • 1
    That goes lower case for me; just use `Checked` as the property name (it makes for better looking C# as well!) – BradleyDotNET Nov 17 '14 at 23:09

0 Answers0