title: How do I encode a : in a url?
body: <p>I need to send a get request where the last part of the url is a json value. I have encoded the following <code>{"period":"600s"}</code> to use on multiple different sites, however they all come up with the same result where the <code>:</code> is not decoded.</p>
  
  <p>The encoded url: <code>stickiness=%7B%22period%22%3A%22600s%22%7D</code>.</p>
  
  <p>Its result when I enter it into my browser: <a href="https://i.stack.imgur.com/kYh4n.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kYh4n.png" alt="enter image description here"></a></p>
  
  <p>So how do I encode a <code>:</code>?</p>