implement REST API routing + JSON object parsing