Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-2163

omitempty doesnt work on primitive.Decimal128 (json)

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Not Needed

      Hi,

      This is related to the issue GODRIVER-1783 the `bson:"field,omitempty"` works, but not 

      `json:"field,omitempty"` the return will be

      {cost: "0E-6176"}

            Assignee:
            benji.rewis@mongodb.com Benji Rewis (Inactive)
            Reporter:
            shadowbob45@gmail.com Shadoweb EB
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: