I am trying to convert mentioned part of the JSON response from forecast api to POJO using http://www.jsonschema2pojo.org/. When I try to convert this to pojo the error says
There's a problem: Unexpected character ('l' (code 108)): was expecting double-quote to start field name (line 2, column 2)
Now I see that I need double quotes on each and every key param of json response. So I manually put double quotes and then I get the pojo class. SO my question is do I have to do it everytime and apply double quotes to every single keys ? Any other trick is there which I am missing ?
{
latitude: 45.4925827,
longitude: -73.57789,
timezone: "America/Montreal",
offset: -4,
currently: {
time: 1496155473,
summary: "Clear",
icon: "clear-day",
nearestStormDistance: 12,
nearestStormBearing: 155,
precipIntensity: 0,
precipProbability: 0,
temperature: 63.32,
apparentTemperature: 63.32,
dewPoint: 57.94,
humidity: 0.83,
windSpeed: 9.87,
windBearing: 152,
visibility: 10,
cloudCover: 0.14,
pressure: 1015.05,
ozone: 346.1
}
}