go icon indicating copy to clipboard operation
go copied to clipboard

json unmarshal err get : invalid character '\x1f' looking for beginning of value

Open lei314121077 opened this issue 4 years ago • 1 comments

why my code unmarshal is this error? if json code item is 0 or nul unmarshal errir!

lei314121077 avatar May 27 '21 08:05 lei314121077

[ { "hostname":"gz-ipfs2", "services":[ { "type":"mgr", "id":"gz-ipfs2.agirzn" }, { "type":"mon", "id":"gz-ipfs2" }, { "type":"osd", "id":"0" }, { "type":"osd", "id":"1" } ], "ceph_version":"ceph version 16.2.4 (12312312) pacific (stable)", "addr":"127.0.0.1", "labels":[

    ],
    "service_type":"",
    "sources":{
        "ceph":true,
        "orchestrator":true
    },
    "status":""
}

]

lei314121077 avatar May 27 '21 08:05 lei314121077