Bonjour a tous, je suis debutant en Javascript et JSON et je chercherais quelqu'un pour m'aider

Je vous fais un Résumé, je veux créer un bot sur twitter utilisant l'api de twitter (forcement) et l'api de spotify, jusqu'a la tous marcher bien et j'ai toujours reussi a m'en sortir tous seul

mais maintenant je tombe sur un problème que je n'arrive pas a résoudre tous seul

je vous explique : pour faire mon bot j'ai besoin de connaitre le nom de l'artiste et le nom de la musique du top 1 des top 50 spotify
j'envoie donc une requete et je recois cette ligne de code qui est du json :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{
  "href" : "https://api.spotify.com/v1/playlists/37i9dQZEVXbIPWwFssbupI/tracks?offset=0&limit=1",
  "items" : [ {
    "added_at" : "1970-01-01T00:00:00Z",
    "added_by" : {
      "external_urls" : {
        "spotify" : "https://open.spotify.com/user/"
      },
      "href" : "https://api.spotify.com/v1/users/",
      "id" : "",
      "type" : "user",
      "uri" : "spotify:user:"
    },
    "is_local" : false,
    "primary_color" : null,
    "track" : {
      "album" : {
        "album_type" : "single",
        "artists" : [ {
          "external_urls" : {
            "spotify" : "https://open.spotify.com/artist/7IlRNXHjoOCgEAWN5qYksg"
          },
          "href" : "https://api.spotify.com/v1/artists/7IlRNXHjoOCgEAWN5qYksg",
          "id" : "7IlRNXHjoOCgEAWN5qYksg",
          "name" : "Aya Nakamura",
          "type" : "artist",
          "uri" : "spotify:artist:7IlRNXHjoOCgEAWN5qYksg"
        } ],
        "available_markets" : [ "AD", "AE", "AL", "AR", "AT", "AU", "BA", "BE", "BG", "BH", "BO", "BR", "BY", "CA", "CH", "CL", "CO", "CR", "CY", "CZ", "DE", "DK", "DO", "DZ", "EC", "EE", "EG", "ES", "FI", "FR", "GB", "GR", "GT", "HK", "HN", "HR", "HU", "ID", "IE", "IL", "IN", "IS", "IT", "JO", "JP", "KW", "KZ", "LB", "LI", "LT", "LU", "LV", "MA", "MC", "MD", "ME", "MK", "MT", "MX", "MY", "NI", "NL", "NO", "NZ", "OM", "PA", "PE", "PH", "PL", "PS", "PT", "PY", "QA", "RO", "RS", "RU", "SA", "SE", "SG", "SI", "SK", "SV", "TH", "TN", "TR", "TW", "UA", "US", "UY", "VN", "XK", "ZA" ],
        "external_urls" : {
          "spotify" : "https://open.spotify.com/album/43sqDUJkvHHK0ikoAN4JAS"
        },
        "href" : "https://api.spotify.com/v1/albums/43sqDUJkvHHK0ikoAN4JAS",
        "id" : "43sqDUJkvHHK0ikoAN4JAS",
        "images" : [ {
          "height" : 640,
          "url" : "https://i.scdn.co/image/ab67616d0000b273e2e7c5322770c06bdfead61f",
          "width" : 640
        }, {
          "height" : 300,
          "url" : "https://i.scdn.co/image/ab67616d00001e02e2e7c5322770c06bdfead61f",
          "width" : 300
        }, {
          "height" : 64,
          "url" : "https://i.scdn.co/image/ab67616d00004851e2e7c5322770c06bdfead61f",
          "width" : 64
        } ],
        "name" : "Jolie nana",
        "release_date" : "2020-07-17",
        "release_date_precision" : "day",
        "total_tracks" : 1,
        "type" : "album",
        "uri" : "spotify:album:43sqDUJkvHHK0ikoAN4JAS"
      },
      "artists" : [ {
        "external_urls" : {
          "spotify" : "https://open.spotify.com/artist/7IlRNXHjoOCgEAWN5qYksg"
        },
        "href" : "https://api.spotify.com/v1/artists/7IlRNXHjoOCgEAWN5qYksg",
        "id" : "7IlRNXHjoOCgEAWN5qYksg",
        "name" : "Aya Nakamura",
        "type" : "artist",
        "uri" : "spotify:artist:7IlRNXHjoOCgEAWN5qYksg"
      } ],
      "available_markets" : [ "AD", "AE", "AL", "AR", "AT", "AU", "BA", "BE", "BG", "BH", "BO", "BR", "BY", "CA", "CH", "CL", "CO", "CR", "CY", "CZ", "DE", "DK", "DO", "DZ", "EC", "EE", "EG", "ES", "FI", "FR", "GB", "GR", "GT", "HK", "HN", "HR", "HU", "ID", "IE", "IL", "IN", "IS", "IT", "JO", "JP", "KW", "KZ", "LB", "LI", "LT", "LU", "LV", "MA", "MC", "MD", "ME", "MK", "MT", "MX", "MY", "NI", "NL", "NO", "NZ", "OM", "PA", "PE", "PH", "PL", "PS", "PT", "PY", "QA", "RO", "RS", "RU", "SA", "SE", "SG", "SI", "SK", "SV", "TH", "TN", "TR", "TW", "UA", "US", "UY", "VN", "XK", "ZA" ],
      "disc_number" : 1,
      "duration_ms" : 147076,
      "episode" : false,
      "explicit" : false,
      "external_ids" : {
        "isrc" : "FRZ042000666"
      },
      "external_urls" : {
        "spotify" : "https://open.spotify.com/track/34FbkFgAbv4ffvhL2XQMVm"
      },
      "href" : "https://api.spotify.com/v1/tracks/34FbkFgAbv4ffvhL2XQMVm",
      "id" : "34FbkFgAbv4ffvhL2XQMVm",
      "is_local" : false,
      "name" : "Jolie nana",
      "popularity" : 79,
      "preview_url" : "https://p.scdn.co/mp3-preview/f38309ea40d6b20b4a7a6b72209b503342b1b147?cid=8f22024a4f144cd7b965b9db6e124e94",
      "track" : true,
      "track_number" : 1,
      "type" : "track",
      "uri" : "spotify:track:34FbkFgAbv4ffvhL2XQMVm"
    },
    "video_thumbnail" : {
      "url" : null
    }
  } ],
  "limit" : 1,
  "next" : "https://api.spotify.com/v1/playlists/37i9dQZEVXbIPWwFssbupI/tracks?offset=1&limit=1",
  "offset" : 0,
  "previous" : null,
  "total" : 50
}
et la je suis perdu,

je sais que tous sa est contenu dans la variable : stdout (j'utilise childprocess pour envoyer la requete)
et moi j'aimerais savoir comment je fais pour ne plus avoir ce gros bloc de texte mais juste le nom de l'artiste et de la musique (c'est a dire jolie nana / Aya Nakamura)
j'ai deja tous t'essayer (stdout.items / stdout[items) ... mais il me dit 'undefinied' a chaque fois

j'espere avoir tous bien expliquer

merci pour ce qui m'aideront