title: How do I access string of json object in React Native
body: <p>I am trying to make an app that displays quotes from a famous person (e.g.  Bob Dylan) using the wiki quote api. </p>
  
  <p>The request url looks like this:</p>
  
  <pre><code>https://en.wikiquote.org/w/api.php?format=json&amp;action=parse&amp;page=Bob_Dylan&amp;prop=text
  </code></pre>
  
  <p>I have the React Native request working with:</p>
  
  <pre><code>componentWillMount() {
  Api().then((response) =&gt; {
    this.setState({
      quote:response.parse.text
  
    })
  
  });
  }
  </code></pre>
  
  <p>When I try to display the quote, however, it is in the form of an object and get [object object] in the view. In the console I receive: </p>
  
  <blockquote>
    <p>Possible Unhandled Promise Rejection (id: 0):
    Objects are not valid as a React child (found: object with keys {<em>}). If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons. Check the render method of <code>Text</code>.
    Invariant Violation: Objects are not valid as a React child (found: object with keys {</em>}). If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons. Check the render method of <code>Text</code>.</p>
  </blockquote>
  
  <p>When I try <code>response.parse.text.*</code> I receive a token error. Any suggestions how to fix this ?</p>