bonjour, mon problème est que j'ai une api qui me revoie un code json que voici :
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
[
{
    "id": 16,
    "domain": 11,
    "uuid": "9626ed25-4634-5b5a-8e0f-5c1884fd4d96",
    "ids3": "12345",
    "name": "convoyer_belt_220404015603",
    "type": "convoyer_belt",
    "POI": false,
    "position": {
      "x": 2.8,
      "y": 14.5,
      "z": 0.0
    },
    "rotation": {
      "x": 0,
      "y": 0,
      "z": 0,
      "w": 1
    },
    "scale": {
      "x": 1,
      "y": 1,
      "z": 1
    },
    "properties": []
  },
  {
    "id": 17,
    "domain": 11,
    "uuid": "9626ed25-4634-5b5a-fhge-5c1884fd4d96",
    "ids3": "12345",
    "name": "bras_220404015603",
    "type": "bras",
    "POI": false,
    "position": {
      "x": 4.7,
      "y": 10.5,
      "z": 0.0
    },
    "rotation": {
      "x": 0,
      "y": 0,
      "z": 0,
      "w": 1
    },
    "scale": {
      "x": 1,
      "y": 1,
      "z": 1
    },
    "properties": []
  }
]
je voudrais accéder a la donnée name j'avais donc tenter par ceci : Object.keys(objects)[0].name,
mais cela ne fonctionne pas, une idée? (objects etant le json parse en JavaScript)