- json_decode: documentation ( source)
<?php
$content = '{"ORDERLIST":"{\"ORDER_LIST\":[{\"order_id\":\"1756\",\"uname\":\"jordan\",\"prod_name\":\"ABC\",\"quantity\":\"1\",\"branch\":\"Dapitan\",\"totalPrice\":\"23500\"}"]}"}';
$response = json_decode($content, true);
$orderlist = json_decode($response['ORDERLIST'], true);
$count = count($response);
echo $count;
//var_dump($response, $orderlist);