go implementation of JSON API responses.