[php] Handling data in a PHP JSON Object