Unexpected BigDecimal truncation while using JsonObject.fromJson(jsonString)

N1QL uses float64 (golang native data type for decimal is float64) for JSON number. You can use ROUND() to round the number. If you need precision more than 15 digits, Convert the value to string and back in the application or USE SDK retrieve data directly.

1 Like