We've put together an vhost Definitive Guide to guide you through the whole process.
It's straightforward enough but we include some more complex examples, configuration and setup as well as downloadable demos.
This API covers the vhost server, how the JSON is created and could be consumed.
This details the server backend to process the responses. If you're only interested in the JSON endpoints, this is not the doc for you.