title: Laravel API response return double quoted numeric value
body: <p>Laravel Version: 5.6.12<br>
  PHP Version: 7.1<br>
  Vuejs Version: 2.5<br>
  Database Driver &amp; Version: MySQL 5.7 (Using mysqlnd driver)</p>
  
  <p><strong>Description</strong>:
  API response returning double quoted numeric value therefore producing undesired output. The response recieved from the server is attached in this image:</p>
  
  <p><a href="https://i.stack.imgur.com/Uvmkm.jpg" rel="nofollow noreferrer">Resonse from Laravel API</a> </p>
  
  <pre><code>$data = ['message' =&gt; 'Hello'];
  return response()-&gt;json($data, 200);
  </code></pre>
  
  <p>Why numeric values in response is double quoted?</p>
  
  <p>Resolved:</p>
  
  <p><a href="https://laracasts.com/discuss/channels/laravel/laravel-api-response-return-double-quoted-numeric-value" rel="nofollow noreferrer">https://laracasts.com/discuss/channels/laravel/laravel-api-response-return-double-quoted-numeric-value</a></p>