Çözüldü PHP ile JSON verilerine ayırma

Bu konu çözüldü olarak işaretlenmiştir. Çözülmediğini düşünüyorsanız konuyu rapor edebilirsiniz.

BeecoV

Kilopat
Katılım
18 Mayıs 2015
Mesajlar
186
Çözümler
2
[CODE lang="json" title="JSON içeriği"]{
"credits": {
"cast": [
{
"adult": false,
"gender": 1,
"id": 3967,
"known_for_department": "Acting",
"name": "Kate Beckinsale",
"original_name": "Kate Beckinsale",
"popularity": 30.362,
"profile_path": "/1mdRhTJGqFwo9Xuul7XO6oXpzhb.jpg",
"cast_id": 1,
"character": "Lindy",
"credit_id": "5d35d42e2f8d090864d040b2",
"order": 0
},
{
"adult": false,
"gender": 2,
"id": 2283,
"known_for_department": "Acting",
"name": "Stanley Tucci",
"original_name": "Stanley Tucci",
"popularity": 15.072,
"profile_path": "/7wPPKi7djQfNc9NLVJvhBmoZ26U.jpg",
"cast_id": 5,
"character": "Dr. Ivan Munchin",
"credit_id": "5d35d46cbefb090c06b77984",
"order": 1
}
]
}
}[/CODE]

Yukarıdaki iç içe geçmiş JSON'u, ayrı ayrı parse edemiyorum.

[CODE lang="php" title="PHP içeriği"]$JSON = "JSON İÇERĞİ BURADA BULUNUYOR.";
$Item = json_decode($JSON,true);
print_r($Item);[/CODE]

Kodları bu şekilde çalıştırdığımda iç içe olan kısım çalışmıyor. Bu iç içe geçmiş değerleri nasıl tek tek çekebilirim? Foreach ile veya Foreach olmadan?
 
Çözüm
@BeecoV, buyur;

PHP:
$curl = curl_init("url");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);
$response = curl_exec($curl); //JSON bu değişkene atanacak.
$httpCode = curl_getinfo($curl, CURLINFO_HTTP_CODE); //Senin kod dediğin hata kodu da burada. Numerik olarak dönüş yapar.
curl_close($curl);
$JSON değişkenini çift tırnak yerine tek tırnak ile atamayı dene. JSON içindeki çift tırnaklar ile çakışıyor.

Tek tek almak için de yapman gereken;

PHP:
($Item->credits->cast)[1];

Bu sana ikinciyi verir ama alt alta göstermek için döngü kullanman şart. Onun için de;

PHP:
$Items = json_decode($JSON);

foreach ($Items->credits->cast as $Item) {
    print_r($Item);
}
Demo;

 
Son düzenleme:
$JSON değişkenini çift tırnak yerine tek tırnak ile atamayı dene. JSON içindeki çift tırnaklar ile çakışıyor.

Tek tek almak için de yapman gereken;

PHP:
$Item["credits"]["cast"][1];

Bu sana ikinciyi verir ama alt alta göstermek için döngü kullanman şart. Onun için de;

PHP:
$Items = json_decode($JSON);

foreach ($Items->credits->cast as $Item) {
 print_r($Item);
}
Demo;


JSON değerleri alırken, değer çekmemi sınırlayan bir şey var mı? Karakter limiti gibi. Çünkü elimde çok uzun bir JSON var aslında. Credits yaklaşık 1000 satırdan oluşmakta. Çektiğim JSON Credits'e kadarki her şeyi getiriyor fakat Credits'i getirmiyor.
 
JSON değerleri alırken, değer çekmemi sınırlayan bir şey var mı? Karakter limiti gibi. Çünkü elimde çok uzun bir JSON var aslında. Credits yaklaşık 1000 satırdan oluşmakta. Çektiğim JSON credits'e kadarki her şeyi getiriyor fakat credits'i getirmiyor.
Baktığın yere göre değişir. Önizleme tarzı bir yere bakıyor olabilirsin.
 
Baktığın yere göre değişir. Önizleme tarzı bir yere bakıyor olabilirsin.
Ben bu JSON listesini bir URL üzerinden çekiyorum. URL içerisinde tokenım olduğundan dolayı burada paylaşamıyorum. URL'yi Postman üzerinden GET isteği ile çektiğim zaman bütün JSON listesini görebiliyorum. Credits dahil. Fakat PHP ile çekmeye çalıştığım zaman göremiyorum credits kısmını.
 
Ben bu JSON listesini bir URL üzerinden çekiyorum. URL içerisinde tokenım olduğundan dolayı burada paylaşamıyorum. URL'yi Postman üzerinden GET isteği ile çektiğim zaman bütün JSON listesini görebiliyorum. Credits dahil. Fakat PHP ile çekmeye çalıştığım zaman göremiyorum credits kısmını.
Tokeni silip PHP request kodunu atar mısın?
 
1629657411675.png


Kod şeklinde yüklemeye çalıştığımda tarayıcı hatası verdi. Görsel olarak yüklemek zorunda kaldım. Kodlarım bu şekilde.

For döngüsünü deneme olması amacı ile sadece 1 url alacak şekilde yazdım.
[CODE lang="json" title="JSON Tümü"]{
"adult": false,
"backdrop_path": "/wPjtacig0kIkVcTQmXoNt6jbMwo.jpg",
"belongs_to_collection": null,
"budget": 0,
"genres": [
{
"id": 28,
"name": "Aksiyon"
},
{
"id": 35,
"name": "Komedi"
}
],
"homepage": "https://www.amazon.com/dp/B097QD44P9",
"id": 617502,
"imdb_id": "tt10228134",
"original_language": "en",
"original_title": "Jolt",
"overview": "Öfke kontrolünü sağlamakta sorunlar yaşayan ve cinayet işlemek isteyen bir yapıya sahip olan bir kadın, bu sorununu elektrot kaplı bir yelek giyerek kontrol altına almaya çalışır. Genç kadın, elektrotlu yelek sayesinde yaşamına normal bir şekilde devam edebilmektedir. Ancak aşık olduğu ilk adamın öldürülmesi, genç kadının öfkesini bastıran yeleği çıkarmasına neden olur. Sevdiği adamın katil ya da katillerini bulmak için her şeyi göze alan kadının öfke problemi, onun cinayetin baş şüphelisi haline gelmesine neden olur.",
"popularity": 1354.502,
"poster_path": "/gYZAHan5CHPFXORpQMvOjCTug4E.jpg",
"production_companies": [
{
"id": 1020,
"logo_path": "/kuUIHNwMec4dwOLghDhhZJzHZTd.png",
"name": "Millennium Films",
"origin_country": "US"
},
{
"id": 20580,
"logo_path": "/oRR9EXVoKP9szDkVKlze5HVJS7g.png",
"name": "Amazon Studios",
"origin_country": "US"
},
{
"id": 48738,
"logo_path": null,
"name": "Campbell Grobman Films",
"origin_country": "US"
},
{
"id": 60621,
"logo_path": null,
"name": "Busted Shark Productions",
"origin_country": "US"
},
{
"id": 140229,
"logo_path": null,
"name": "Electric Films",
"origin_country": ""
},
{
"id": 74795,
"logo_path": null,
"name": "Nu Boyana Film Studios",
"origin_country": ""
}
],
"production_countries": [
{
"iso_3166_1": "BG",
"name": "Bulgaria"
},
{
"iso_3166_1": "US",
"name": "United States of America"
}
],
"release_date": "2021-07-15",
"revenue": 0,
"runtime": 91,
"spoken_languages": [
{
"english_name": "English",
"iso_639_1": "en",
"name": "English"
}
],
"status": "Released",
"tagline": "",
"title": "Jolt",
"video": false,
"vote_average": 6.8,
"vote_count": 541,
"credits": {
"cast": [
{
"adult": false,
"gender": 1,
"id": 3967,
"known_for_department": "Acting",
"name": "Kate Beckinsale",
"original_name": "Kate Beckinsale",
"popularity": 30.362,
"profile_path": "/1mdRhTJGqFwo9Xuul7XO6oXpzhb.jpg",
"cast_id": 1,
"character": "Lindy",
"credit_id": "5d35d42e2f8d090864d040b2",
"order": 0
},
{
"adult": false,
"gender": 2,
"id": 2283,
"known_for_department": "Acting",
"name": "Stanley Tucci",
"original_name": "Stanley Tucci",
"popularity": 15.072,
"profile_path": "/7wPPKi7djQfNc9NLVJvhBmoZ26U.jpg",
"cast_id": 5,
"character": "Dr. Ivan Munchin",
"credit_id": "5d35d46cbefb090c06b77984",
"order": 1
},
{
"adult": false,
"gender": 2,
"id": 21127,
"known_for_department": "Acting",
"name": "Bobby Cannavale",
"original_name": "Bobby Cannavale",
"popularity": 6.766,
"profile_path": "/gYQwTbEj5IBPYKLGKgrsNGrWAMl.jpg",
"cast_id": 2,
"character": "Detective Vicars",
"credit_id": "5d35d43d2f8d090864d040ff",
"order": 2
},
{
"adult": false,
"gender": 2,
"id": 224181,
"known_for_department": "Acting",
"name": "Jai Courtney",
"original_name": "Jai Courtney",
"popularity": 11.887,
"profile_path": "/22RCc8KSKQe3YgsaWUcX9XQwxFf.jpg",
"cast_id": 3,
"character": "Justin",
"credit_id": "5d35d448caab6d7c7e95439a",
"order": 3
},
{
"adult": false,
"gender": 1,
"id": 1298360,
"known_for_department": "Acting",
"name": "Laverne Cox",
"original_name": "Laverne Cox",
"popularity": 5.355,
"profile_path": "/eRb7MA8UrxAF4CrSmmpXL9Khsct.jpg",
"cast_id": 4,
"character": "Detective Nevin",
"credit_id": "5d35d457befb090c06b7793e",
"order": 4
},
{
"adult": false,
"gender": 2,
"id": 11180,
"known_for_department": "Acting",
"name": "David Bradley",
"original_name": "David Bradley",
"popularity": 7.406,
"profile_path": "/znpkwHitb3pcaJbUmgDqG0YenYp.jpg",
"cast_id": 22,
"character": "Gareth Fizel",
"credit_id": "60ccbbfd19ab59005732e529",
"order": 7
},
{
"adult": false,
"gender": 1,
"id": 4038,
"known_for_department": "Acting",
"name": "Susan Sarandon",
"original_name": "Susan Sarandon",
"popularity": 6.709,
"profile_path": "/oHYYL8bNakAREaLUBtMul5uMG0A.jpg",
"cast_id": 23,
"character": "Woman with No Name",
"credit_id": "60ccbc194539d0007853519f",
"order": 8
},
{
"adult": false,
"gender": 2,
"id": 81480,
"known_for_department": "Acting",
"name": "Ori Pfeffer",
"original_name": "Ori Pfeffer",
"popularity": 1.4,
"profile_path": "/ye0pKuMJPWkQEfpxBJ7UI3bs21g.jpg",
"cast_id": 24,
"character": "Delacroix",
"credit_id": "60ccbc4bac8e6b00788f2d8f",
"order": 9
},
{
"adult": false,
"gender": 2,
"id": 1801084,
"known_for_department": "Acting",
"name": "James Grogan",
"original_name": "James Grogan",
"popularity": 1.38,
"profile_path": "/n9GJEKraqvYq1ivW7jCCsyWHlrh.jpg",
"cast_id": 30,
"character": "Underground Fighter",
"credit_id": "60dc8bc72d3721002c4dbb85",
"order": 10
},
{
"adult": false,
"gender": 0,
"id": 2513545,
"known_for_department": "Acting",
"name": "Lili Rich",
"original_name": "Lili Rich",
"popularity": 0.6,
"profile_path": null,
"cast_id": 25,
"character": "Eva",
"credit_id": "60dc8847ef9d72002d91d49e",
"order": 11
},
{
"adult": false,
"gender": 2,
"id": 118037,
"known_for_department": "Acting",
"name": "Christian Brassington",
"original_name": "Christian Brassington",
"popularity": 0.699,
"profile_path": null,
"cast_id": 26,
"character": "Julian",
"credit_id": "60dc8898992fe60074a5ab5c",
"order": 12
},
{
"adult": false,
"gender": 0,
"id": 3141791,
"known_for_department": "Acting",
"name": "Richard Price",
"original_name": "Richard Price",
"popularity": 0.6,
"profile_path": null,
"cast_id": 27,
"character": "Southbank Passerby",
"credit_id": "60dc89265690b5002e3b72a5",
"order": 13
},
{
"adult": false,
"gender": 0,
"id": 2527063,
"known_for_department": "Crew",
"name": "Adam Brashaw",
"original_name": "Adam Brashaw",
"popularity": 0.6,
"profile_path": null,
"cast_id": 28,
"character": "Fighting Goon",
"credit_id": "60dc895cd95420002b5b53cd",
"order": 14
},
{
"adult": false,
"gender": 0,
"id": 3132789,
"known_for_department": "Acting",
"name": "Tom Xander",
"original_name": "Tom Xander",
"popularity": 0.6,
"profile_path": null,
"cast_id": 29,
"character": "Toby Kasparzki",
"credit_id": "60dc89902d372100464bc0bc",
"order": 15
},
{
"adult": false,
"gender": 2,
"id": 2822916,
"known_for_department": "Crew",
"name": "Stuart Shepherd-Garner",
"original_name": "Stuart Shepherd-Garner",
"popularity": 0.6,
"profile_path": null,
"cast_id": 31,
"character": "Imperion Security Officer",
"credit_id": "60dc8c10b686b90046e0d33a",
"order": 16
},
{
"adult": false,
"gender": 0,
"id": 3168819,
"known_for_department": "Acting",
"name": "Sophie Sanderson",
"original_name": "Sophie Sanderson",
"popularity": 0.6,
"profile_path": null,
"cast_id": 32,
"character": "Andy",
"credit_id": "60faa9c6d7fbda004518e9df",
"order": 17
},
{
"adult": false,
"gender": 0,
"id": 3168821,
"known_for_department": "Acting",
"name": "Evan Sharp",
"original_name": "Evan Sharp",
"popularity": 0.6,
"profile_path": null,
"cast_id": 33,
"character": "Jalen Vicars",
"credit_id": "60faa9dcfd140b00293cc127",
"order": 18
},
{
"adult": false,
"gender": 0,
"id": 3168822,
"known_for_department": "Acting",
"name": "Lewis Bray",
"original_name": "Lewis Bray",
"popularity": 0.6,
"profile_path": null,
"cast_id": 34,
"character": "Doug",
"credit_id": "60faa9e6944a570030427561",
"order": 19
},
{
"adult": false,
"gender": 2,
"id": 2916706,
"known_for_department": "Acting",
"name": "Anton Kottas",
"original_name": "Anton Kottas",
"popularity": 0.6,
"profile_path": "/trj5wj5Y6Tvj649tbn1a4IG6YfG.jpg",
"cast_id": 75,
"character": "Kid",
"credit_id": "60fc399517792c0046e9d6b1",
"order": 20
},
{
"adult": false,
"gender": 2,
"id": 1739101,
"known_for_department": "Acting",
"name": "Nathan Cooper",
"original_name": "Nathan Cooper",
"popularity": 1.4,
"profile_path": "/rjkq191kx9xQF8D5zdPG95QEkcv.jpg",
"cast_id": 76,
"character": "Need #3",
"credit_id": "60fc39b1e24b930048f432ec",
"order": 21
}
],
"crew": [
{
"adult": false,
"gender": 2,
"id": 16830,
"known_for_department": "Production",
"name": "Boaz Davidson",
"original_name": "Boaz Davidson",
"popularity": 1.891,
"profile_path": "/6GfBPoefCrLhuvtpFXRt88Qt8ZU.jpg",
"credit_id": "5d35d6192f8d0915bdd0469c",
"department": "Production",
"job": "Executive Producer"
},
{
"adult": false,
"gender": 2,
"id": 17207,
"known_for_department": "Production",
"name": "Les Weldon",
"original_name": "Les Weldon",
"popularity": 1.096,
"profile_path": null,
"credit_id": "5d35d53d2f8d0915bdd043b8",
"department": "Production",
"job": "Producer"
},
{
"adult": false,
"gender": 2,
"id": 17209,
"known_for_department": "Production",
"name": "Avi Lerner",
"original_name": "Avi Lerner",
"popularity": 0.972,
"profile_path": null,
"credit_id": "5d35d5b32f8d090b8cd0459f",
"department": "Production",
"job": "Executive Producer"
},
{
"adult": false,
"gender": 2,
"id": 21119,
"known_for_department": "Editing",
"name": "Michael J. Duthie",
"original_name": "Michael J. Duthie",
"popularity": 0.84,
"profile_path": null,
"credit_id": "60fb2e31d6c300002c606569",
"department": "Editing",
"job": "Editor"
},
{
"adult": false,
"gender": 2,
"id": 45829,
"known_for_department": "Production",
"name": "Trevor Short",
"original_name": "Trevor Short",
"popularity": 1.767,
"profile_path": null,
"credit_id": "5d35d5e2caab6d7c80954b2e",
"department": "Production",
"job": "Executive Producer"
},
{
"adult": false,
"gender": 0,
"id": 63972,
"known_for_department": "Camera",
"name": "Jules O'Loughlin",
"original_name": "Jules O'Loughlin",
"popularity": 0.6,
"profile_path": null,
"credit_id": "5f7a98dd944a570035d57186",
"department": "Camera",
"job": "Director of Photography"
},
{
"adult": false,
"gender": 0,
"id": 61299,
"known_for_department": "Production",
"name": "David Bernardi",
"original_name": "David Bernardi",
"popularity": 0.6,
"profile_path": null,
"credit_id": "5d35d516befb090c06b77d08",
"department": "Production",
"job": "Producer"
},
{
"adult": false,
"gender": 2,
"id": 61580,
"known_for_department": "Art",
"name": "Russell De Rozario",
"original_name": "Russell De Rozario",
"popularity": 0.6,
"profile_path": "/cNlEMZk6gmDOCtT75DrEbrYhpp5.jpg",
"credit_id": "60fb2e48fb3f61005c3aadfb",
"department": "Art",
"job": "Production Design"
},
{
"adult": false,
"gender": 1,
"id": 62700,
"known_for_department": "Production",
"name": "Lati Grobman",
"original_name": "Lati Grobman",
"popularity": 2.744,
"profile_path": "/fycONPhj8YWq5vKMbZWD16uNuJq.jpg",
"credit_id": "60fb2dc0310325005da9d651",
"department": "Production",
"job": "Executive Producer"
},
{
"adult": false,
"gender": 1,
"id": 85178,
"known_for_department": "Acting",
"name": "Christa Campbell",
"original_name": "Christa Campbell",
"popularity": 4.385,
"profile_path": "/kn0JedNhANkstdA5lHtTnZ7hxvC.jpg",
"credit_id": "60fb2d9ac439c00046651ed3",
"department": "Production",
"job": "Executive Producer"
},
{
"adult": false,
"gender": 1,
"id": 264113,
"known_for_department": "Directing",
"name": "Tanya Wexler",
"original_name": "Tanya Wexler",
"popularity": 1.706,
"profile_path": "/fXtLLjPpc9diiHYbotrexFgKv1g.jpg",
"credit_id": "5d35d487caab6d7c7f954713",
"department": "Directing",
"job": "Director"
},
{
"adult": false,
"gender": 2,
"id": 1015623,
"known_for_department": "Art",
"name": "Ivan Ranghelov",
"original_name": "Ivan Ranghelov",
"popularity": 0.765,
"profile_path": null,
"credit_id": "60fb2e58e24b930048f29d12",
"department": "Art",
"job": "Art Direction"
},
{
"adult": false,
"gender": 0,
"id": 1116884,
"known_for_department": "Sound",
"name": "Gord Hillier",
"original_name": "Gord Hillier",
"popularity": 0.6,
"profile_path": null,
"credit_id": "60fb2f62944a570046e744df",
"department": "Sound",
"job": "Dialogue Editor"
},
{
"adult": false,
"gender": 0,
"id": 1116884,
"known_for_department": "Sound",
"name": "Gord Hillier",
"original_name": "Gord Hillier",
"popularity": 0.6,
"profile_path": null,
"credit_id": "60fb2f5c96033100811ae702",
"department": "Sound",
"job": "ADR Supervisor"
},
{
"adult": false,
"gender": 0,
"id": 1133331,
"known_for_department": "Production",
"name": "Robert Van Norden",
"original_name": "Robert Van Norden",
"popularity": 0.6,
"profile_path": null,
"credit_id": "5d35d5312f8d090b8cd0446d",
"department": "Production",
"job": "Producer"
},
{
"adult": false,
"gender": 0,
"id": 1279912,
"known_for_department": "Costume & Make-Up",
"name": "Carlos Rosario",
"original_name": "Carlos Rosario",
"popularity": 0.6,
"profile_path": null,
"credit_id": "60fb2e7ad6c3000046c4c154",
"department": "Costume & Make-Up",
"job": "Costume Design"
},
{
"adult": false,
"gender": 0,
"id": 1334764,
"known_for_department": "Sound",
"name": "Enos Desjardins",
"original_name": "Enos Desjardins",
"popularity": 0.6,
"profile_path": null,
"credit_id": "60fb2f1e848eb9006828a71e",
"department": "Sound",
"job": "Sound Re-Recording Mixer"
},
{
"adult": false,
"gender": 0,
"id": 1337669,
"known_for_department": "Sound",
"name": "Kiril Kaloyanov",
"original_name": "Kiril Kaloyanov",
"popularity": 0.6,
"profile_path": null,
"credit_id": "60fb2f6e17792c002d72e6d3",
"department": "Sound",
"job": "Boom Operator"
},
{
"adult": false,
"gender": 0,
"id": 1337670,
"known_for_department": "Sound",
"name": "Vladimir Kaloyanov",
"original_name": "Vladimir Kaloyanov",
"popularity": 0.6,
"profile_path": null,
"credit_id": "60fb2f7cd7fbda002fbca4d1",
"department": "Sound",
"job": "Sound Mixer"
},
{
"adult": false,
"gender": 0,
"id": 1377461,
"known_for_department": "Editing",
"name": "Carsten Kurpanek",
"original_name": "Carsten Kurpanek",
"popularity": 0.6,
"profile_path": null,
"credit_id": "60fb2e3d310325002372297f",
"department": "Editing",
"job": "Editor"
},
{
"adult": false,
"gender": 0,
"id": 1404094,
"known_for_department": "Sound",
"name": "Dominic Lewis",
"original_name": "Dominic Lewis",
"popularity": 0.828,
"profile_path": null,
"credit_id": "60fb2e110dea6e005e8df004",
"department": "Sound",
"job": "Original Music Composer"
},
{
"adult": false,
"gender": 0,
"id": 1409852,
"known_for_department": "Production",
"name": "Jeffrey Greenstein",
"original_name": "Jeffrey Greenstein",
"popularity": 1.048,
"profile_path": null,
"credit_id": "5d35d635befb0919aeb77e76",
"department": "Production",
"job": "Executive Producer"
},
{
"adult": false,
"gender": 0,
"id": 1409855,
"known_for_department": "Production",
"name": "Jonathan Yunger",
"original_name": "Jonathan Yunger",
"popularity": 0.6,
"profile_path": null,
"credit_id": "5d35d650caab6d7c80954cd2",
"department": "Production",
"job": "Executive Producer"
},
{
"adult": false,
"gender": 0,
"id": 1410275,
"known_for_department": "Costume & Make-Up",
"name": "Francesca Van Der Feyst",
"original_name": "Francesca Van Der Feyst",
"popularity": 0.828,
"profile_path": null,
"credit_id": "60fb2ea13103250046d2f4db",
"department": "Costume & Make-Up",
"job": "Hair Designer"
},
{
"adult": false,
"gender": 0,
"id": 1410275,
"known_for_department": "Costume & Make-Up",
"name": "Francesca Van Der Feyst",
"original_name": "Francesca Van Der Feyst",
"popularity": 0.828,
"profile_path": null,
"credit_id": "60fb2ea799d5c3005feec643",
"department": "Costume & Make-Up",
"job": "Makeup Designer"
},
{
"adult": false,
"gender": 0,
"id": 1410275,
"known_for_department": "Costume & Make-Up",
"name": "Francesca Van Der Feyst",
"original_name": "Francesca Van Der Feyst",
"popularity": 0.828,
"profile_path": null,
"credit_id": "60fb2eb6848eb9002d53a09c",
"department": "Costume & Make-Up",
"job": "Prosthetic Makeup Artist"
},
{
"adult": false,
"gender": 0,
"id": 1412603,
"known_for_department": "Costume & Make-Up",
"name": "Sofi Hvarleva",
"original_name": "Sofi Hvarleva",
"popularity": 0.6,
"profile_path": null,
"credit_id": "60fb2e961684f7007fd2a631",
"department": "Costume & Make-Up",
"job": "Key Makeup Artist"
},
{
"adult": false,
"gender": 2,
"id": 1429370,
"known_for_department": "Visual Effects",
"name": "Alexander Valev",
"original_name": "Alexander Valev",
"popularity": 0.6,
"profile_path": null,
"credit_id": "60fb312b3103250046d2f939",
"department": "Visual Effects",
"job": "Visual Effects Supervisor"
},
{
"adult": false,
"gender": 0,
"id": 1431293,
"known_for_department": "Directing",
"name": "Yariv Lerner",
"original_name": "Yariv Lerner",
"popularity": 0.98,
"profile_path": null,
"credit_id": "5d35d565caab6d7c7e954746",
"department": "Production",
"job": "Producer"
},
{
"adult": false,
"gender": 0,
"id": 1515777,
"known_for_department": "Production",
"name": "Gareth West",
"original_name": "Gareth West",
"popularity": 0.6,
"profile_path": null,
"credit_id": "60fb2dfd2afb25002ce926d7",
"department": "Production",
"job": "Executive Producer"
},
{
"adult": false,
"gender": 0,
"id": 1640712,
"known_for_department": "Sound",
"name": "Ryan Nowak",
"original_name": "Ryan Nowak",
"popularity": 0.6,
"profile_path": null,
"credit_id": "60fb2f89a12856004600880c",
"department": "Sound",
"job": "Sound Designer"
},
{
"adult": false,
"gender": 0,
"id": 1640713,
"known_for_department": "Sound",
"name": "Nikolay Bakalov",
"original_name": "Nikolay Bakalov",
"popularity": 0.6,
"profile_path": null,
"credit_id": "60fb2eebe24b930048f29e2e",
"department": "Sound",
"job": "Sound Effects Editor"
},
{
"adult": false,
"gender": 0,
"id": 1640714,
"known_for_department": "Sound",
"name": "Kris Casavant",
"original_name": "Kris Casavant",
"popularity": 0.98,
"profile_path": null,
"credit_id": "60fb2eff2afb25005fc108c0",
"department": "Sound",
"job": "Supervising Sound Editor"
},
{
"adult": false,
"gender": 0,
"id": 1721345,
"known_for_department": "Costume & Make-Up",
"name": "Chase Aston",
"original_name": "Chase Aston",
"popularity": 0.6,
"profile_path": null,
"credit_id": "60fb2e851684f70046bf8425",
"department": "Costume & Make-Up",
"job": "Makeup Artist"
},
{
"adult": false,
"gender": 0,
"id": 1891169,
"known_for_department": "Art",
"name": "Kimberley McBeath",
"original_name": "Kimberley McBeath",
"popularity": 0.6,
"profile_path": null,
"credit_id": "60fb2e6fe24b930048f29d3e",
"department": "Art",
"job": "Set Decoration"
},
{
"adult": false,
"gender": 0,
"id": 1995249,
"known_for_department": "Sound",
"name": "Matt Bainbridge",
"original_name": "Matt Bainbridge",
"popularity": 0.6,
"profile_path": null,
"credit_id": "60fb2edd944a570046e74409",
"department": "Sound",
"job": "ADR Recordist"
},
{
"adult": false,
"gender": 0,
"id": 2043023,
"known_for_department": "Visual Effects",
"name": "Peter Dimitrov",
"original_name": "Peter Dimitrov",
"popularity": 0.6,
"profile_path": null,
"credit_id": "60fb30cb17792c002d72ea22",
"department": "Visual Effects",
"job": "Visual Effects Supervisor"
},
{
"adult": false,
"gender": 2,
"id": 2076156,
"known_for_department": "Sound",
"name": "Vinny Alfano",
"original_name": "Vinny Alfano",
"popularity": 0.6,
"profile_path": null,
"credit_id": "60fb2ed33d355700759c8fb1",
"department": "Sound",
"job": "ADR Recordist"
},
{
"adult": false,
"gender": 0,
"id": 2177650,
"known_for_department": "Sound",
"name": "Adrian Gougov",
"original_name": "Adrian Gougov",
"popularity": 0.6,
"profile_path": null,
"credit_id": "60fb2f470dea6e005e8df256",
"department": "Sound",
"job": "Dialogue Editor"
},
{
"adult": false,
"gender": 0,
"id": 2177650,
"known_for_department": "Sound",
"name": "Adrian Gougov",
"original_name": "Adrian Gougov",
"popularity": 0.6,
"profile_path": null,
"credit_id": "60fb2f3fa1285600290e1594",
"department": "Sound",
"job": "ADR Editor"
},
{
"adult": false,
"gender": 0,
"id": 2177650,
"known_for_department": "Sound",
"name": "Adrian Gougov",
"original_name": "Adrian Gougov",
"popularity": 0.6,
"profile_path": null,
"credit_id": "60fb2f37fb3f61005c3aafbf",
"department": "Sound",
"job": "ADR Supervisor"
},
{
"adult": false,
"gender": 0,
"id": 2368396,
"known_for_department": "Writing",
"name": "Scott Wascha",
"original_name": "Scott Wascha",
"popularity": 0.919,
"profile_path": null,
"credit_id": "5d35d4d2caab6d7c7e954505",
"department": "Writing",
"job": "Writer"
},
{
"adult": false,
"gender": 0,
"id": 2368401,
"known_for_department": "Production",
"name": "Sheryl Clarke",
"original_name": "Sheryl Clarke",
"popularity": 0.6,
"profile_path": null,
"credit_id": "5d35d59bbefb090c06b77e6e",
"department": "Production",
"job": "Producer"
},
{
"adult": false,
"gender": 0,
"id": 2509773,
"known_for_department": "Visual Effects",
"name": "Pedro Domingo Luque",
"original_name": "Pedro Domingo Luque",
"popularity": 0.6,
"profile_path": null,
"credit_id": "60fb30d7944a57003043689d",
"department": "Visual Effects",
"job": "Visual Effects Supervisor"
},
{
"adult": false,
"gender": 0,
"id": 2732440,
"known_for_department": "Production",
"name": "Tanner Mobley",
"original_name": "Tanner Mobley",
"popularity": 0.6,
"profile_path": null,
"credit_id": "60fb2de00dea6e005e8defef",
"department": "Production",
"job": "Executive Producer"
},
{
"adult": false,
"gender": 0,
"id": 2793929,
"known_for_department": "Sound",
"name": "Chris Ferguson",
"original_name": "Chris Ferguson",
"popularity": 0.6,
"profile_path": null,
"credit_id": "60fb2f2ac439c000466521c8",
"department": "Sound",
"job": "ADR Mixer"
},
{
"adult": false,
"gender": 0,
"id": 3154365,
"known_for_department": "Visual Effects",
"name": "Kalin Mihaylov",
"original_name": "Kalin Mihaylov",
"popularity": 1.4,
"profile_path": null,
"credit_id": "60fb30effd140b007e617bdb",
"department": "Visual Effects",
"job": "Visual Effects"
},
{
"adult": false,
"gender": 0,
"id": 3169407,
"known_for_department": "Editing",
"name": "Chris Barwell",
"original_name": "Chris Barwell",
"popularity": 0.6,
"profile_path": null,
"credit_id": "60fb2e20848eb900867015e1",
"department": "Editing",
"job": "Editor"
},
{
"adult": false,
"gender": 0,
"id": 3169410,
"known_for_department": "Visual Effects",
"name": "Miguel Arribas",
"original_name": "Miguel Arribas",
"popularity": 0.6,
"profile_path": null,
"credit_id": "60fb30a317792c005db86562",
"department": "Visual Effects",
"job": "Visual Effects"
},
{
"adult": false,
"gender": 0,
"id": 3169411,
"known_for_department": "Visual Effects",
"name": "Carlos Cidrais",
"original_name": "Carlos Cidrais",
"popularity": 0.6,
"profile_path": null,
"credit_id": "60fb30b499d5c3005feeca37",
"department": "Visual Effects",
"job": "Visual Effects Supervisor"
},
{
"adult": false,
"gender": 0,
"id": 3169413,
"known_for_department": "Visual Effects",
"name": "Hristina Patkova",
"original_name": "Hristina Patkova",
"popularity": 0.6,
"profile_path": null,
"credit_id": "60fb3100848eb9006828aab9",
"department": "Visual Effects",
"job": "Visual Effects"
},
{
"adult": false,
"gender": 0,
"id": 3169414,
"known_for_department": "Visual Effects",
"name": "Nu Boyana Portugal",
"original_name": "Nu Boyana Portugal",
"popularity": 0.6,
"profile_path": null,
"credit_id": "60fb3111fb3f6100455c6dee",
"department": "Visual Effects",
"job": "Visual Effects"
},
{
"adult": false,
"gender": 0,
"id": 3169416,
"known_for_department": "Visual Effects",
"name": "Georgi Ugrinov",
"original_name": "Georgi Ugrinov",
"popularity": 0.6,
"profile_path": null,
"credit_id": "60fb3144848eb9006828aba2",
"department": "Visual Effects",
"job": "Visual Effects"
}
]
}
}[/CODE]

Bu da tüm JSON içeriği.
 
@BeecoV, buyur;

PHP:
$curl = curl_init("url");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);
$response = curl_exec($curl); //JSON bu değişkene atanacak.
$httpCode = curl_getinfo($curl, CURLINFO_HTTP_CODE); //Senin kod dediğin hata kodu da burada. Numerik olarak dönüş yapar.
curl_close($curl);
 
Çözüm

Yeni konular

Geri
Yukarı