cannot decode array into a map[string]*

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Works as Designed
    • Priority: Major - P3
    • None
    • Affects Version/s: 1.4.0
    • Component/s: BSON
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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 (Inactive)
            Reporter:
            滨 黄
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: