title: How to convert json object's value to integer?
body: <p>I am trying to submit a form of AngularJs application. 
  And this what I have set the value to privacy.</p>
  
  <p><code>$scope.data.privacy = angular.toJson({'privacy': response.privacy});</code></p>
  
  <p>While submitting the form, It post privacy like this </p>
  
  <pre><code>{"privacy":{"sex":"2","birthday":"1","relationshipstatus":"2"}}
  </code></pre>
  
  <p>But I just need the object value as integer. i.e. </p>
  
  <pre><code>{"privacy":{"sex":2,"birthday":1,"relationshipstatus":2}}
  </code></pre>
  
  <p>How can I convert json object's value to integer?</p>