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

omitempty doesnt work on primitive.Decimal128 (json)

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Gone away
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • None
    • Not Needed

    Description

      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"}

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: