I think others will know better than I as to what the best approach might be. My take is that certain values are already available by making an XHR to get the JSON and when they aren’t a controller can be put together to return JSON eg.
I have seen plugins that use custom queries involving JOINs etc. but I have not experimented doing similar yet.