i have create json from an array but how we can make an empty json
$jsonrows['paymentmethods']['CC']=array()
json_encode($jsonrows['paymentmethods']['CC']=array())
currently output is like this
"CC":[]
what i need is
"CC":{}
please help me with this
$test = json_encode($jsonrows['paymentmethods']['CC']=array());json_encode($jsonrows['paymentmethods']['CC']=new stdClass);