Some API calls have a recursive and non-recursive attribute, but I wouldn't count on that being ubiquitous. If you're interacting with the API from a command line, I can't recommend 'jq' enough. Pipe the output of e.g. curl call into this JSON parser/query processor. It also adds syntax highlighting as an extra bonus.