ok risolto in due modi.

da php >= 5.3:
Codice PHP:
$json json_decode(file_get_contents('.........'));
$ag 106614;

$filter array_filter($json, function($obj) use ($ag) {
    
$conto intval(substr($obj->conto46));
    if (
$conto == $ag) {
        return 
$conto;
    }
});

var_dump($filter); 
per versioni precedenti:
Codice PHP:
$json json_decode(file_get_contents('.........'));
$ag 106614;

$filter array_filter($json, function($obj) {
    global 
$ag;
    
$conto intval(substr($obj->conto46));
    if (
$conto == $ag) {
        return 
$conto;
    }
});

var_dump($filter);