go
go copied to clipboard
json unmarshal err get : invalid character '\x1f' looking for beginning of value
why my code unmarshal is this error? if json code item is 0 or nul unmarshal errir!
[ { "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":""
}
]