📜  golang parse jason - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:56.492000             🧑  作者: Mango

代码示例1
import "encoding/json"
//...

// ... 
myJsonString := `{"some":"json"}`

// `&myStoredVariable` is the address of the variable we want to store our
// parsed data in
json.Unmarshal([]byte(myJsonString), &myStoredVariable)
//...