I think you should reconsider the implementation, instead of return just
path from list, return the title, description etc as an object and reuse
it.If it is not possible then you should consider creating a dedicated
api. You should not be using OOTB json, which leads into security
vulnerability if .json is not unblocked for all the request.