I have a simple HTTP server running. I am trying to send a list of values to this server using curl.
curl -X POST -d "["student1", "student2"]" http://localhost:8080/
How can I read the body as a string slice? I tried b, _ := io.ReadAll(r.Body) but it reads the array as one item rather than an array.