We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The example given in the readme also does work. This is what I get when trying to run the example.
The text was updated successfully, but these errors were encountered:
Are you using github.com/Jeffail/gabs/v2? It seems to work fine for me:
github.com/Jeffail/gabs/v2
package main import ( "github.com/Jeffail/gabs/v2" ) func main() { jsonParsed, err := gabs.ParseJSON([]byte(`{"array":[{"value":1},{"value":2},{"value":3}]}`)) if err != nil { panic(err) } val := jsonParsed.Path("array.1.value").String() if val != "2" { panic(val) } }
Sorry, something went wrong.
Hey @mihaitodor,
You are right, on v2 that does work. I apologize. I already had the library installed so didn't see the new version.
No branches or pull requests
The example given in the readme also does work. This is what I get when trying to run the example.
The text was updated successfully, but these errors were encountered: