Step1 : Json Marshal function receive data and return data after convert into json format --------------------------------- return ok
step 2 : Apply NewDecoder on given data and it throw me error
</
var member Member
data ,err := json.Marshal(member)
if err != nil{println("error", err)} println(data)
err = json.NewDecoder(request.Body).Decode(member); if err != nil{
println("Error ", err ) // return eof
}
hOW TO RESOLVE THIS ERROR
Top comments (0)