title: json_encode() issue and storing in cookie issue in PHP
body: <p>When I am converting <code>json_encode</code>; It is converting it in correct format, but when I am storing it in cookie; format get changed. I want to store in cookie as it is.</p>
  
  <p><strong><em>JSON STRING:</em></strong></p>
  
  <pre><code>{
  "ID": "0",
    "basicAddress": {
      "ID": "0",
      "Line1": "327 S Main St",
      "Line2": "",
      "Line3": "",
      "City": "Fitzgerald",
      "ZipCode": "31750",
      "StateProv": "",
      "Country": "",
      "stateProv": "GA"
    },
    "Name": "",
    "Latitude": "31.7114886",
    "Longitude": "-83.25471970000001",
    "IsPreferred": "false"
  }
  </code></pre>
  
  <p><strong><em>AFTER STORING IN COOKIE:</em></strong></p>
  
  <pre><code>%7B%22ID%22%3A%220%22%2C%22basicAddress%22%3A%7B%22ID%22%3A%220%22%2C%22Line1%22%3A%22327+S+Main+St%22%2C%22Line2%22%3A%22%22%2C%22Line3%22%3A%22%22%2C%22City%22%3A%22Fitzgerald%22%2C%22ZipCode%22%3A%2231750%22%2C%22StateProv%22%3A%22%22%2C%22Country%22%3A%22%22%2C%22stateProv%22%3A%22GA%22%7D%2C%22Name%22%3A%22%22%2C%22Latitude%22%3A%2231.7114886%22%2C%22Longitude%22%3A%22-83.25471970000001%22%2C%22IsPreferred%22%3A%22false%22%7D
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/haS10.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/haS10.png" alt="enter image description here"></a></p>