fixed json_encode problem with PHP 5.2 - changed to (object)