Sign In Register

How can we help you today?

Start a new topic

Invalid BSON field name $type

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

Hi Michael,


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

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?

Thanks,
Sean

 

Login to post a comment