DEV Community

Cover image for Json parse data after line 1 to 28 Column
WisdomEnigma
WisdomEnigma

Posted on

Json parse data after line 1 to 28 Column

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)