What’s the correct format for empty GUIDs to be sent to the server using JSON.NET for deserialization?
"{"id":"","name":"Test"}" results in "Unrecognized Guid format."
"{"id":null,"name":"Test"}" results in "Value cannot be null."
"{"id":"00000000-0000-0000-0000-000000000000","name":"Test"}" works, but I don’t want to force clients to provide this.
The format you mentioned is indeed the “correct” one. But you can also support other formats by using a custom
JsonConverter– see the code below for an example.