Apologies if this has been asked before but:
Since this software is modular, I have been trying to figure out how to make a request for JSON from within the WordPress PHP and not through a RESTful Web call.
To figure this out, I have started exploring the way the Singletons are set up, but I'm still a bit confused.
Does anyone know a good way to say, "Hey, plugin, can you please show all 200 Custom Posts of a certain type, in JSON format...but to return it as a $result I can use inside WordPress?"
So basically I'm trying to figure out a way to intercept the JSON. Any help much appreciated.