Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

json parse error #2

Open
croccio opened this issue Sep 16, 2016 · 3 comments
Open

json parse error #2

croccio opened this issue Sep 16, 2016 · 3 comments

Comments

@croccio
Copy link

croccio commented Sep 16, 2016

java.lang.IllegalStateException: Expected a string but was BEGIN_OBJECT at line 1 column 377 path $.rain

"rain" should be an object, not a string

@code-crusher
Copy link
Owner

Hey @croccio let me check the Api again and get back to you. Will try to fix it asap. Thanks :)

@croccio
Copy link
Author

croccio commented Sep 16, 2016

here the response

{"coord":{"lon":12.49,"lat":41.9},"weather":[{"id":502,"main":"Rain","description":"heavy intensity rain","icon":"10d"},{"id":202,"main":"Thunderstorm","description":"thunderstorm with heavy rain","icon":"11d"}],"base":"stations","main":{"temp":292.62,"pressure":1019,"humidity":94,"temp_min":290.93,"temp_max":294.15},"visibility":2500,"wind":{"speed":6.2,"deg":160},"rain":{"1h":9.18},"clouds":{"all":90},"dt":1474014483,"sys":{"type":1,"id":5848,"message":0.0286,"country":"IT","sunrise":1474001510,"sunset":1474046203},"id":6545158,"name":"Trevi","cod":20

@code-crusher
Copy link
Owner

Ah, they have changed the Api. Let me check all the Api's again. Will change the parsing object. Thank you @croccio for this. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants