Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ObjxMapSlice value #16

Closed
onrik opened this issue Jul 7, 2015 · 0 comments
Closed

ObjxMapSlice value #16

onrik opened this issue Jul 7, 2015 · 0 comments
Assignees
Milestone

Comments

@onrik
Copy link
Contributor

onrik commented Jul 7, 2015

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> []
}
@hanzei hanzei added the bug label Jan 29, 2018
@hanzei hanzei added this to the v0.2 milestone Jan 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants