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

Lists not working? #134

Closed
JewishLewish opened this issue Jan 16, 2023 · 1 comment
Closed

Lists not working? #134

JewishLewish opened this issue Jan 16, 2023 · 1 comment

Comments

@JewishLewish
Copy link

I tested the following code:

		jsonParsed, err := gabs.ParseJSON([]byte(`{"array":[{"value":1},{"value":2},{"value":3}]}`))
		if err != nil {
			panic(err)
		}
		fmt.Println(jsonParsed.Path("array.1.value").String())

and I keep getting {} as an error?

@JewishLewish
Copy link
Author

Fixed: You need to use 2nd version.

"github.com/Jeffail/gabs/v2"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant