title: create an empty object in JSON with PHP?
body: <p>i have create json from an array but how we can make an empty json </p>
  
  <pre><code>$jsonrows['paymentmethods']['CC']=array()
  json_encode($jsonrows['paymentmethods']['CC']=array())
  </code></pre>
  
  <p>currently output is like this</p>
  
  <pre><code>"CC":[]
  </code></pre>
  
  <p>what i need is</p>
  
  <pre><code>"CC":{}
  </code></pre>
  
  <p>please help me with this</p>