# README
jsend
Implements the JSend specification for gin. See JSend specification for details.
Usage
func (h Health) Status(c *gin.Context) {
data := gin.H{"application": gin.H{"version": "20190808"}}
resp := jsend.R{CTX: c, StatusCode: http.StatusOK, Data: data}
resp.JSON()
}
The above will output the following JSON encoded message:
{
"status": "success",
"data": {
"application": {
"version": "20190808"
}
}
}