Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 07:28

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Json in PHP ansprechen

Discussion on Json in PHP ansprechen within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
Warnuk3r's Avatar
 
elite*gold: 307
Join Date: Jul 2009
Posts: 1,091
Received Thanks: 434
Json in PHP ansprechen

Hey, spiele grade mit der Riot Api von League of Legends etwas und habe hier folgenden Json:

Code:
{
   "playerStatSummaries": [
      {
         "playerStatSummaryType": "AramUnranked5x5",
         "aggregatedStats": {
            "totalChampionKills": 1300,
            "totalAssists": 1919,
            "totalTurretsKilled": 47
         },
         "modifyDate": 1421703712000,
         "wins": 57
      },
      {
         "playerStatSummaryType": "Ascension",
         "aggregatedStats": {},
         "modifyDate": 1421012834000,
         "wins": 12
      },
etc.
Wie genau krieg ich den angesprochen? Wäre das folgende richtig?

$variable['playerStatSummaries'][0]['playerStatSummaryTyp']

Damit geht das nicht und ich weiß grade nicht, wie genau das angesprochen wird. Bei einfacheren Jsons kriege ich das hin, hier kommt ja aber diese Nummerierung mit dazu...

Lg Wr3
Warnuk3r is offline  
Old 01/21/2015, 23:07   #2
 
elite*gold: 0
Join Date: Aug 2005
Posts: 80
Received Thanks: 13
Bitte schön.

teto is offline  
Reply


Similar Threads Similar Threads
JSON parsen?
10/22/2014 - Web Development - 3 Replies
Hey, habe folgenden Code: { "data": , "paging": { "cursors": { "before": "QWFJdkdyeGN6OXRhekNXVWhEaGZwZGpGODM1NUhqaktw RkV1Rk5QclhfZ1BwM1V2c1l1dmFyaGx0U3o1OXlCelBkcmhtOW t1cTJDa1dtb25HWmtHSmd6c2ZxWjlvcjh4TGFRLU1qbVpVa0cz QkE=", "after": "QWFMVDVVRnBlX0VGbE9EZzdNWlA1OXZMLTlVelRET3VF UWRWcDNGbFV6WEd3VXFneTlhMkw3c2R0b2VxY01xTE5fYmhvNW 00enFZWUxKbGlQVk81QVVsX0xCYkFIcWRyeGluSW1GdWVQbmRX WkE=" } }
.json files!
10/28/2013 - Facebook - 5 Replies
Is it Possible to Change some data in .json files I was gonna edit Dragons of atlantis .json files ! Just Like BYm gonna map it then everything is like WTF!!
JSON Rezeptdatenbank!
06/21/2012 - Web Development - 4 Replies
Hey, Ich muss fürs Studium eine "virtuelle" Küche via Canvas etc. erstellen. Die Rezepte würde ich gerne mit Json machen. Hat jmd. evtl eine art Grundgerüst für mich? Z.b. erst Rezeptname dann kommen die Zutaten (Reihenfolge beachten) Gruß
JQuery -JSON
11/28/2011 - General Coding - 0 Replies
Hey, mein Freund hat ein Problem und ich wollte mal wissen, ob ihr da helfen könnt? Die Fragestellung ist sehr kurz und ich persönlich kann damit nichts anfangen , aber hier die Frage: Wie krieg ich beim Fullcalendar in JQuery nen Datensatz per JSON rein?
Komplexer JSON String
12/09/2010 - General Coding - 6 Replies
Huhu Kleine Herausforderung für euch: Ich habe einen JSON String. Jetzt will ich den JSON String in eine geeignete Datenstruktur in Java impementieren. Ein Objekt (mit ner Klasse als Vorlage), dynamische Arrays, oder ne Hashmap. Der Json String ist ziemlich komplex: var game_data =...



All times are GMT +1. The time now is 07:28.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.