title: Will php's json_encode() always use double quotes as string delimiter?
body: <p>I have a php associative array containing strings as values and I encode it to JSON and store it in an html-data attribute. That is read by some JS. </p>
  
  <p>So far so good. </p>
  
  <p>Now, I need to use single quotes for the data attribute, otherwise the context switches.</p>
  
  <pre><code>&lt;section id="settings" data-settings='{"some":"val"}'&gt;
  &lt;/section&gt;
  </code></pre>
  
  <p>The question is, can I rely on the <code>json_encode()</code> function of php to encode strings always with double quotes? Surprisingly, I can't seem to find information on this. I only find articles from people having issues with quotes in the array values. </p>
  
  <p>Thanks in advance.</p>