The following json is not correctly deserialized by Newtonsoft JSON.NET into byte[]:
{
ID:123,
Name:'test',
RowVersion: {
$current: null,
$current_uid: null,
$parent_uid: 1,
$type: "System.Byte[], mscorlib",
$uid: 2,
$value: "AAAAAAAAEnM="
}
}
The deserialization works fine for all the members of the object except RowVersion, which is mapped to byte[] in C#, deserializes as null.
I'm using the following custom ValueProviderFactory:
JSONSerializer.Deserialize<List<ExpandoObject>>(JSONReader);
Can somebody help me understand why RowVersion is deserialized as null?