Non lo decodificare
Al terzo server gli passi direttamente file_get_contents($file). Oppure $json ridallo alla json_encode