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

cannot decode array into a map[string]*

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.4.0
    • Component/s: BSON
    • Labels:
      None

      I am trying to read a K/V into map[string]string, but it reports "cannot decode array into a map[string]string" if the content is empty.

       

      The data is written by PHP code, sometimes it has value _

      {"hellow": "world"}

      , but sometimes it is _[]

            Assignee:
            isabella.siu@mongodb.com Isabella Siu (Inactive)
            Reporter:
            mikehb78@gmail.com 滨 黄
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: