View definition

(*Object).GetValueArray

Defined in github.com/antonholmquist/jason/jason.go

Description

Gets the value at key path and attempts to typecast the value into an array. Returns error if the value is not a json array. Consider using the more specific Get<Type>Array() since it may reduce later type casts. Example:

friends, err := GetValueArray("person", "friends")
for i, friend := range friends {
	... // friend will be of type Value here
}

GetValueArray is referenced in 4 repositories

github.com/antonholmquist/jason github.com/anthonynguyen/mread github.com/Yugge/gmusic

...