Dear Team,
How to remove escape characters from json .
func myapi(ctx *gin.Context) {
_in := mystructure{}
err := ctx.ShouldBindJSON(&_in)
before pass this function we want to remove the escape string from the json "VALUE"
data, err := services.MyServicefunction(_in)
if err != nil {
ctx.JSON(http.StatusBadRequest, gin.H{"exception": err.Error()})
return
}
ctx.JSON(http.StatusOK, gin.H{"exception": "", "data": data})
}