I was trying to replicate this Python example in Rust using reqwest crate:
import requests
print(requests.post("https://httpbin.org/post", data={"something": ""})) # this is passed in form
I tried using form method of RequestBuilder but couldn't get it to work with string, I checked the docs and It seems that it only supports "array of tuples, or a HashMap, or a custom type that implements Serialize.", is there no way to pass json directly? or a way to convert json to HashMap ?