A JSON REST API stub