title: Output object in json with single quotes for laravel blade?
body: <p>I'm using angular with laravel and in my blade templates I want to do a quick and dirty assignment like so:</p>
  
  <pre><code>ng-init="product = {{$product}}"
  </code></pre>
  
  <p>However a problem with this approach is laravel/php outputs the json in double quotes. I'm required to use single quotes due to <code>ng-init=""</code> on the outside. I've tried <code>str_replace('"', "'", $product)</code> but its only a matter of time until I run into a value with an apostrophe. Is there any solutions to this?</p>
  
  <p>Note: I'm well aware that this is bad practice but its a quick and dirty solution to a couple of pages, also saves me time and the client money.</p>