Thank you Erel.
Let me summarize, to be sure to have understood it correctly:
1. I define an API for my service to take in account (acceptable) commands , parameters (to commands) and error management
2. Users will write some php code (or equivalent) to JSON-encode commands and parameters to send to my b4j server
3. My b4j server will be a no-UI application, listening on some port for appropriate commands directed to an handler/folder (e.g.
www.mysite.com:5555/api)
4. Once an appropriate command is received and decoded, it is acted upon, generating a response or an error, again JSON-encoded
So libs jHHTP and JSON are what I need for the above. A naive question: would jHttpUtils2 coexist gracefully with jHttp? I need the former to download some data from a second webserver out of my control.
Thank you again.