Help to bind the structure


#1

I’m developing a webhook service for AmoCRM, and I can not make out what comes to me from them.
there is such an hendler:

func changedLeadStatus(c echo.Context) error {
	bodyBytes, _ := ioutil.ReadAll(c.Request().Body)
	bodyString := string(bodyBytes)
	
	fmt.Println(bodyString)
	return c.NoContent(http.StatusOK)
}

fmt.Println:

leads%5Bstatus%5D%5B0%5D%5Bid%5D=10928339&leads%5Bstatus%5D%5B0%5D%5Bname%5D=&leads%5Bstatus%5D%5B0%5D%5Bstatus_id%5D=21721936&leads%5Bstatus%5D%5B0%5D%5Bold_status_id%5D=21721930&leads%5Bstatus%5D%5B0%5D%5Bprice%5D=&leads%5Bstatus%5D%5B0%5D%5Bresponsible_user_id%5D=2778463&leads%5Bstatus%5D%5B0%5D%5Blast_modified%5D=1538318685&leads%5Bstatus%5D%5B0%5D%5Bmodified_user_id%5D=2778463&leads%5Bstatus%5D%5B0%5D%5Bcreated_user_id%5D=2778463&leads%5Bstatus%5D%5B0%5D%5Bdate_create%5D=1538317502&leads%5Bstatus%5D%5B0%5D%5Bpipeline_id%5D=1357129&leads%5Bstatus%5D%5B0%5D%5Btags%5D%5B0%5D%5Bid%5D=531499&leads%5Bstatus%5D%5B0%5D%5Btags%5D%5B0%5D%5Bname%5D=test_event&leads%5Bstatus%5D%5B0%5D%5Baccount_id%5D=21721924&leads%5Bstatus%5D%5B0%5D%5Bcustom_fields%5D%5B0%5D%5Bid%5D=629659&leads%5Bstatus%5D%5B0%5D%5Bcustom_fields%5D%5B0%5D%5Bname%5D=roistat&leads%5Bstatus%5D%5B0%5D%5Bcustom_fields%5D%5B0%5D%5Bvalues%5D%5B0%5D%5Bvalue%5D=4&account%5Bsubdomain%5D=intexcons

How do I get out of this structure?

Here such request comes to me: