rewriting for json-only interface with cj-controller scope