 <p>It looks like it is just a single object being returned rather than an array so you should be able to access the id property using <strong>data.id</strong> , no need to specify an array index.</p>