Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • Does this make sense? It encodes it to pretty strange looking url params: %7B%22aNumber%22%3A2%7D. Commented Apr 9, 2021 at 16:20
  • @AlexMoore-Niemi Have a look at this URL encoding reference: w3schools.com/tags/ref_urlencode.ASP Commented Apr 9, 2021 at 20:29
  • The encoding itself is fine, but it's encoding the brackets and such as well. That doesn't seem exactly equivalent to sending "foo=bar" and I don't think all servers will interpret it to be the same. I guess that's what the poster is asking for though! Commented Apr 11, 2021 at 15:48
  • This should not be the accepted answer. {"test":true,"name":"foo"} needs to be converted to test=true&name=foo Commented Oct 17, 2023 at 6:06