โ02-28-2022 04:21 AM
โ02-28-2022 05:11 AM
Hi @deepanshu.1,
Iโve managed to do this using only one Mapper snap, but in addition I used a Group By N Snap with the Group size set to 0 before the Mapper, and a JSON Splitter afterwards.
Hereโs the expression:
And hereโs the pipeline:
SampleWeatherAPIResponseMap_2022_02_28.slp (10.9 KB)
BR,
Aleksandar
โ02-28-2022 08:56 AM
Dear Aleksandar,
Thanks for the reply but I am facing issue below:
BR,
Deepanshu
โ02-28-2022 12:53 PM
Hi @deepanshu.1 ,
Can you please attach the output of the REST API (I suppose it is in JSON format) ?
Cheers,
Marjan
โ02-28-2022 10:37 PM
Hi Marjan,
Below is the output:
[
{
โgroupโ:[
{
โlocationโ:
โKonstanzโ
โtempโ:
269.63
โpressureโ:
1028
โhumidityโ:
82
}
{
โlocationโ:
โIndiaโ
โtempโ:
305.49
โpressureโ:
1013
โhumidityโ:
15
}
{
โlocationโ:
โNovinkiโ
โtempโ:
265.38
โpressureโ:
1035
โhumidityโ:
87
}
{
โlocationโ:
โPtitsefabrikaโ
โtempโ:
283.25
โpressureโ:
1018
โhumidityโ:
80
}
]
}
]
Regards,
Deepanshu