the resolver is its own module now; add a JSON endpoint.