first stab at a JSON API endpoint using go-rest-json