In ObjectAsMutableDocument(T entity), there are:
- json = JsonConvert.SerializeObject(entity, _settings);
- var values = JsonConvert.DeserializeObject<Dictionary<string, dynamic>>(json, _settings);
By "yes, Json serialization write the value for example “120.0” instead of “120”, did you mean “json” in above (1) shows the number 120.0 instead of 120. Have you inspected “entity”, the argument of the function? Are you sure the property in “entity” is of type integer?