Cast json that contains interface in properly struct
问题 i'm unable to cast the following json in a struct in Golang, received from Kraken API: { "error": [], "result": { "LINKUSD": { "asks": [ ["2.049720", "183.556", 1576323009], ["2.049750", "555.125", 1576323009], ["2.049760", "393.580", 1576323008], ["2.049980", "206.514", 1576322995] ], "bids": [ ["2.043800", "20.691", 1576322350], ["2.039080", "755.396", 1576323007], ["2.036960", "214.621", 1576323006], ["2.036930", "700.792", 1576322987] ] } } } Using json-to-go , he gives me the following