json_decode($json); kısmını json_decode($json, true); şeklinde değiştirirseniz Array tipinde çıktı alabilirsiniz.