Couchbase .Net client returning decimal instead of int

After spending 5 hours debugging, here is my findings. Couchbase base stores longer int in scientific notions form and NewtonSoft can’t deserialize it to an int. For example, let say I have a field in a document {count: 11425509}, grabbing the raw payload looks something like this from couchbase “1.1425509e+07”.

Can someone please help.

@eddadjei

To my knowledge, Couchbase doesn’t do anything to change the format of a JSON document that is stored. I’m thinking the problem is probably in the serialization step in your application when it is writing to Couchbase. Do you have any custom serialization settings or converters in place? Are there any other applications writing to Couchbase via something other than Newtonsoft.Json?

Thanks,
Brant