title: How to post a form using fetch in react native?
body: <p>I'm trying to post the form containing the first_name, last_name, email, password and password_confirmation using react-native fetch api.</p>
  
  <pre><code>fetch('http://localhost:3000/auth', {
    method: 'post',
    body: JSON.stringify({
      config_name: 'default',
      first_name: this.state.first_name,
      last_name: this.state.last_name,
      email: this.state.email,
      password: this.state.password,
      password_confirmation: this.state.password_confirmation,
    })
  })
  </code></pre>
  
  <p>Output in Rails console</p>
  
  <pre><code>Parameters: {"{\"config_name\":\"default\",\"first_name\":\"Piyush\",\"last_name\":\"Chauhan\",\"email\":\"piyushchauhan2011@gmail.com\",\"password\":\"diehard4\",\"password_confirmation\":\"diehard4\"}"=&gt;"[FILTERED]"}
  Unpermitted parameter: {"config_name":"default","first_name":"Piyush","last_name":"Chauhan","email":"piyushchauhan2011@gmail.com","password":"diehard4","password_confirmation":"diehard4"}
  </code></pre>
  
  <p>So, its posting the whole value as string and rails is parsing the string as a variable. I want to strip out the "{" from the json response. How to do it ?</p>