For REST service, how do I setup response parameters for duplicate string names in a object?

Please see below, there are duplicate strings in an object ("weather"\"date"\"hourly") such as humidity and pressure. How do I pick the first humidity or pressure on response part of REST service?

Thanks!!!

"weather": [
{
"date": "2014-10-22",
"hourly": [
{
"cloudcover": "10",
"humidity": "74",
"precipMM": "0.7",
"pressure": "1009",
"sigHeight_m": "0.6",
"swellDir": "114",
"swellHeight_m": "0.4",
"swellPeriod_secs": "10.0",
"tempC": "14",
"tempF": "58",
"time": "0",
"visibility": "10",
"waterTemp_C": "19",
"waterTemp_F": "66",
"weatherCode": "113",
"weatherIconUrl": [
{
"value": "http:\/\/cdn.worldweatheronline.net\/images\/wsymbols01_png_64\/wsymbol_0001_sunny.png"
}
],
"winddir16Point": "SW",
"winddirDegree": "229",
"windspeedKmph": "9",
"windspeedMiles": "6"
},
{
"cloudcover": "27",
"humidity": "83",
"precipMM": "3.8",
"pressure": "1008",
"sigHeight_m": "0.6",
"swellDir": "147",
"swellHeight_m": "0.4",
"swellPeriod_secs": "6.1",
"tempC": "14",
"tempF": "57",
"time": "300",
"visibility": "8",
"waterTemp_C": "19",
"waterTemp_F": "66",
"weatherCode": "299",
"weatherIconUrl": [
{
"value": "http:\/\/cdn.worldweatheronline.net\/images\/wsymbols01_png_64\/wsymbol_0010_heavy_rain_showers.png"
}
1 person has
this question
+1
This topic is no longer open for comments or replies.