Creating a JSON-RPC server in ZF2 is very similar to how you would do it in ZF1, so you could pretty much follow the documentation for version 1. However, here is an example of how to implement with version 2.
The other day I was asked if I’d like to review a solar charger battery pack for portable devices that comes from Mobile Solar Chargers. At first I was a little dubious because I’ve seen some battery packs and solar chargers that have been rather badly constructed/have a flimsy design and provide as much power a lemon-powered battery. But as I had just gotten a new phone that likes battery power, I thought I’d give it a shot… and I was genuinely happy that I did!