[GODRIVER-1199] primitive.Decimal128 does not implement MarshalJSON or UnmarshalJSON Created: 16/Jul/19  Updated: 28/Oct/23  Resolved: 27/Jan/21

Status: Closed
Project: Go Driver
Component/s: BSON
Affects Version/s: 1.0.4
Fix Version/s: 1.5.0

Type: Improvement Priority: Major - P3
Reporter: Ryan Wynn Assignee: Isabella Siu (Inactive)
Resolution: Fixed Votes: 0
Labels: jeff+
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: GODRIVER-1691

 Description   

I noticed that primitive.Decimal128 were not being rendered to JSON and I think it is because the JSON MarshalJSON and UnmarshalJSON methods are not implemented for it. 



 Comments   
Comment by Kevin Albertson [ 11/Feb/21 ]

Cherry-picked onto release/1.5 with https://github.com/mongodb/mongo-go-driver/commit/6e83de7e43af83c0d0bd7ad1fc23aeb6f80a804d

Comment by Githook User [ 27/Jan/21 ]

Author:

{'name': 'Isabella Siu', 'email': 'isabella.siu@mongodb.com', 'username': 'iwysiu'}

Message: GODRIVER-1199 Add UnmarshalJSON and MarshalJSON for primitive.Decimal128 (#556)
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/18835ded3d70669e0c19ba8e0937f7cdd6714aff

Generated at Thu Feb 08 08:35:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.