Registriert seit: 8. Dez 2005
Ort: 24994 Holt
380 Beiträge
Delphi 10.2 Tokyo Professional
|
JSON iterieren, aber wie?
24. Jun 2022, 09:13
Moin,
ich stehe hier gerade ein wenig auf dem Schlauch und bräuchte mal eine Hilfestellung.
Gegeben ist folgendes JSON:
Code:
{
"data": [
{
"article": {
"id": 12472,
"sku": "AAXXX165",
"name": "Außenspiegel links elektrisch verstellbar Temperatursensor 5 W langer Spiegelarm",
"manufacturer": "Originalgerätehersteller (Original Equipment Manufacturer)",
"price": 12345.5,
"quality": "Ident",
"deposit": null,
"deposit_article_sku": null,
"created_at": "2016-02-13 16:30:43",
"updated_at": null,
"oe_number": null,
"stock": 1,
"weight": 3.48,
" unit": {
"amount": 64.925,
" unit": "Stk."
},
"dimensions": {
"length": [
0,
"mm"
],
"width": [
0,
"mm"
],
"height": [
0,
"mm"
]
},
"important_information": {
"hazard_warnings": null
}
}
},
{
"article": {
"id": 12475,
"sku": "AAXXX168",
"name": "Außenspiegel links elektrisch verstellbar 16 W langer Spiegelarm",
"manufacturer": "Originalgerätehersteller (Original Equipment Manufacturer)",
"price": 12345.8,
"quality": "Ident",
"deposit": null,
"deposit_article_sku": null,
"created_at": "2016-02-13 16:30:43",
"updated_at": null,
"oe_number": null,
"stock": 91,
"weight": 3.48,
" unit": {
"amount": 64.09,
" unit": "Stk."
},
"dimensions": {
"length": [
500,
"mm"
],
"width": [
400,
"mm"
],
"height": [
230,
"mm"
]
},
"important_information": {
"hazard_warnings": null
}
}
},
{
"article": {
"id": 12476,
"sku": "AAXXX169",
"name": "Außenspiegel links elektrisch verstellbar Temperatursensor 16W langer Spiegelarm",
"manufacturer": "Originalgerätehersteller (Original Equipment Manufacturer)",
"price": 12345.5,
"quality": "Ident",
"deposit": null,
"deposit_article_sku": null,
"created_at": "2016-02-13 16:30:43",
"updated_at": null,
"oe_number": null,
"stock": 322,
"weight": 3.48,
" unit": {
"amount": 64.925,
" unit": "Stk."
},
"dimensions": {
"length": [
500,
"mm"
],
"width": [
400,
"mm"
],
"height": [
230,
"mm"
]
},
"important_information": {
"hazard_warnings": null
}
}
},
{
"article": {
"id": 22684,
"sku": "AAXXX169OE",
"name": "Außenspiegel links elektrisch verstellbar Temperatursensor 16W langer Spiegelarm Original",
"manufacturer": "Original Ersatzteil (genuine part)",
"price": 123456.75,
"quality": null,
"deposit": null,
"deposit_article_sku": null,
"created_at": "2016-02-13 16:30:47",
"updated_at": null,
"oe_number": null,
"stock": 1,
"weight": 3.5,
" unit": {
"amount": 190.894,
" unit": "Stk."
},
"dimensions": {
"length": [
530,
"mm"
],
"width": [
500,
"mm"
],
"height": [
230,
"mm"
]
},
"important_information": {
"hazard_warnings": null
}
}
},
{
"article": {
"id": 30970,
"sku": "AAXXX169MM",
"name": "Außenspiegel links elektrisch verstellbar Temperatursensor 16W langer Spiegelarm Magneti Marelli",
"manufacturer": "Marelli Aftermarket Germany GmbH",
"price": 123454.26,
"quality": null,
"deposit": null,
"deposit_article_sku": null,
"created_at": "2016-08-18 15:47:22",
"updated_at": null,
"oe_number": null,
"stock": 54,
"weight": 3.45,
" unit": {
"amount": 80.004,
" unit": "Stk."
},
"dimensions": {
"length": [
240,
"mm"
],
"width": [
460,
"mm"
],
"height": [
520,
"mm"
]
},
"important_information": {
"hazard_warnings": null
}
}
},
{
"article": {
"id": 41961,
"sku": "7870019",
"name": "Satz Spiegel rechts & links elektrisch mit Temperatursensor 16 W",
"manufacturer": "Bosch/Siemens",
"price": 123456.4,
"quality": "Ident",
"deposit": null,
"deposit_article_sku": null,
"created_at": "2017-08-15 12:19:24",
"updated_at": null,
"oe_number": null,
"stock": 1,
"weight": 6.9,
" unit": {
"amount": 127.872,
" unit": "Stk."
},
"dimensions": {
"length": [
0,
"mm"
],
"width": [
0,
"mm"
],
"height": [
0,
"mm"
]
},
"important_information": {
"hazard_warnings": null
}
}
}
],
"meta": {
"pagination": {
"total": 6,
"count": 6,
"per_page": 100,
"current_page": 1,
"total_pages": 1,
"links": {}
}
}
}
Wie kann ich jetzt, in diesem Falkl die sechs Artikel (article) druchiterieren um an die einzelnen Werte zu kommen, über einen kurzen Tipp wäre ich dankbar.
Gruß
|