View definition

(*Object).GetObjectArray

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

Description

Gets the value at key path and attempts to typecast the value into an array of objects. Returns error if the value is not a json array or if any of the contained objects are not objects. Example:

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

GetObjectArray is referenced in 15 repositories

github.com/antonholmquist/jason github.com/instainer/instainer github.com/devict/mcman

...