This modifies the zone list command in such a way, that a query result could be directly returned to the response. With a bit of work, large query results could be rendered with a streaming json renderer to the output.
These are only examples for now and nothing serious yet but showcase the innards of query and types for now. It is a beginning.