I'm trying to save some JSON created by Json.NET to a collection but I'm getting this error:
GS: RECV:{"@class":".GameSparksErrorResponse","error":{"message":"Invalid BSON field name $type (298371-event
The JSON includes the .Net class type with the key $type but GameSparks doesn't like it. Is there any way around this or do I need to write a custom serializer without the $type?
Can you paste you test harness logs of this process here for us to have a look?
If you prefer you can open a ticket about this issue here.
Thanks,
Oisin
Customer Support
said
over 6 years ago
Hey Micheal,
We recently upgraded our mongo version to 3.0 on preview (we will be upgrading our live servers to 3.0 soon), could you try inserting your JSON data now and let us know if you are still having problems?
Michael Edwards
I'm trying to save some JSON created by Json.NET to a collection but I'm getting this error:
GS: RECV:{"@class":".GameSparksErrorResponse","error":{"message":"Invalid BSON field name $type (298371-event
The JSON includes the .Net class type with the key $type but GameSparks doesn't like it. Is there any way around this or do I need to write a custom serializer without the $type?
Thanks!
1 person has this question