Closed onrik closed 6 years ago
package main import ( "fmt" "github.com/stretchr/objx" ) var data = ` { "codes": [{"code": "34"}, {"code": "3254"}] } ` func main() { obj, err := objx.FromJSON(data) fmt.Println(err, obj.Get("codes").ObjxMapSlice()) // <nil> [] }