Is there a way to deserialize some JSON to a DTO where the JSON contains unquoted hexadecimal values? I'm using JsonConvert.DeserializeObject
.
This is the JSON that I need to deserialize. It is being produced by a device, and I don't have any control over it:
{"ID":7,"T":1511819861,"E":777, "ET":2,"DEVID":f525873c,"DEVTS":1511801849}
The problem is with the field "DEVID".
I know that this JSON is considered invalid, but I need to find a way to work with it. Is there any way to configure or cast that field?