I have an appserver routine (.p) on PAS that returns json data.
OE 12 Classroom Ed
Create a REST or Web service and map the API you want to it. With REST, you have a graphical mapper that allows you to map parts of the incoming and outgoing HTTP messages. With Web, you create a web handler and call your procedure.