Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions jsonq.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ func NewQuery(data interface{}) *JsonQuery {
return j
}

// Get extracts a untyped field from the JsonQuery
func (j *JsonQuery) Get(s ...string) (interface{}, error) {
return rquery(j.blob, s...)
}

// Bool extracts a bool the JsonQuery
func (j *JsonQuery) Bool(s ...string) (bool, error) {
val, err := rquery(j.blob, s...)
Expand Down