context.go
func (ctx *Context) GetBodyJSON() {
	var reqJSON map[string]interface{}
	body, _ := ioutil.ReadAll(ctx.Request.Body)
	defer ctx.Request.Body.Close()
	cType := ctx.Request.Header.Get("Content-Type")
	a := strings.Split(cType, ";")
	if a[0] == "application/x-www-form-urlencoded" {
		reqJSON = make(map[string]interface{})
		reqStr := string(body)
		reqArr := strings.Split(reqStr, "&")
		for _, v := range reqArr {
			param := strings.Split(v, "=")
			reqJSON[param[0]], _ = url.QueryUnescape(param[1])
		}
	} else {
		json.Unmarshal(body, &reqJSON)
	}
	ctx.BodyJSON = reqJSON
}
func (ctx *Context) GetBodyJSON() {
	var reqJSON map[string]interface{}
	body, _ := ioutil.ReadAll(ctx.Request.Body)
	defer ctx.Request.Body.Close()
	cType := ctx.Request.Header.Get("Content-Type")
	a := strings.Split(cType, ";")
	if a[0] == "application/x-www-form-urlencoded" {
		reqJSON = make(map[string]interface{})
		reqStr := string(body)
		reqArr := strings.Split(reqStr, "&")
		for _, v := range reqArr {
			param := strings.Split(v, "=")
			reqJSON[param[0]], _ = url.QueryUnescape(param[1])
		}
	} else {
		json.Unmarshal(body, &reqJSON)
	}
	ctx.BodyJSON = reqJSON
}
// GetBodyJSON return a json from body