16-ричную строку, это видимо base64 переведите в строку
Как-то так:
package main
import (
"encoding/json"
"log"
)
type assetJSON struct {
AssetRef string
Name string
Qty float64
}
type assetsJSON struct {
Amount float64
Assets []assetJSON
}
type objectJSON struct {
Ask assetsJSON
CanComplete bool
CanDisable bool
Complete bool
Offer assetsJSON
RequiredFee float64
}
func main() {
jsonData := []byte(`{
"ask": {
"amount": 0,
"assets": [
{
"assetref": "74-266-27408",
"name": "USD",
"qty": 5000
}
]
},
"cancomplete": true,
"candisable": true,
"complete": false,
"offer": {
"amount": 0,
"assets": [
{
"assetref": "73-266-61482",
"name": "BTC",
"qty": 1
}
]
},
"requiredfee": 0
}`)
obj := objectJSON{}
if err := json.Unmarshal(jsonData, &obj); err != nil {
log.Fatal(err)
}
log.Printf("%#v", obj)
}
https://play.golang.org/p/erXuDLOGzJs