Hi I am getting into kotlin for android development and have built a simple app to test the places API. I know the HTTP request is returning the data but I have come stuck with libraries that handle the requests.
I started with retrofit but struggled with relevant docs in kotlin. Then tried Fuel which works until I try and iterate over the data object but get Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $
This then lead me to output the response and the object in results is in format:
"results" : [{
}]
Could it be that because I am using google places API that fuel is not working as intended? To sum up can anyone point me in a direction for moving forward with HTTP calls in Kotlin maybe some libraries to try and if google has its own way for deserialising the object data so I can use specific parts returned from the call.
submitted by /u/TravelOwn4386
[link] [comments]