You wrote in README:
r.Body -> ctx.PostBody()
But io.ReadCloser is not equal []byte (those types).
How can I get stream of Body?
Body of net/http package is io.ReaderCloser as you say. Fasthttp implementation returns an array of bytes. It's simply to use with json:
json.Unmarshal(ctx.PostBody(), &yourStructure)
If you prefer to use the routing framework instead, forked from fasthttp-routing with JSON support.
Most helpful comment
Body of
net/httppackage is io.ReaderCloser as you say. Fasthttp implementation returns an array of bytes. It's simply to use with json: