Giriş DeğeriDocumentation Index
Fetch the complete documentation index at: https://docs.apinizer.com/llms.txt
Use this file to discover all available pages before exploring further.
Nested JSON yapısındaki belirli bir alan içinden veri çekebilir ve bu alanın key ifadesini değiştirebilir. Bu sayfa, shift operasyonu kullanarak nested array’leri çıkarma ve yeniden adlandırma örneğini içerir.
Giriş DeğeriDocumentation Index
Fetch the complete documentation index at: https://docs.apinizer.com/llms.txt
Use this file to discover all available pages before exploring further.
{
"statusCode": 200,
"statusDescription": "OK",
"numRows": 0,
"data": [
{
"CUR_X_MIKTARLARI": {
"rowDataList": [
{
"KURUM_ID": "123",
"KURUM_ADI": "aaa",
"TOPLAM": 645
},
{
"KURUM_ID": "124",
"KURUM_ADI": "bbb",
"TOPLAM": 645
},
{
"KURUM_ID": "125",
"KURUM_ADI": "ccc",
"TOPLAM": 645
}
],
"columnNames": [
"KURUM_ID",
"KURUM_ADI",
"TOPLAM"
],
"numRows": 3
}
}
],
"result": [],
"elapsedTime": 4,
"errors": []
}
CUR_X_MIKTARLARI içindeki rowDataList array’ini çıkarır ve ModifiedList olarak yeniden adlandırır.[
{
"operation": "shift",
"spec": {
"data": {
"*": {
"CUR_X_MIKTARLARI": {
"rowDataList": "ModifiedList"
}
}
}
}
}
]
{
"ModifiedList" : [
{
"KURUM_ID" : "123",
"KURUM_ADI" : "aaa",
"TOPLAM" : 645
},
{
"KURUM_ID" : "124",
"KURUM_ADI" : "bbb",
"TOPLAM" : 645
},
{
"KURUM_ID" : "125",
"KURUM_ADI" : "ccc",
"TOPLAM" : 645
}
]
}
Bu sayfa yararlı mıydı?