use JSON API for definition lookups