I am simply trying to parse a jsonarray to list of objects but i keep getting an error
Here is the JsonArray
[
"{\"label\":\"Facebook\",\"id\":\"246\",\"Facebook\":\"Yes\",\"date\":\"March-01-2018\"}",
"{\"label\":\"webby\",\"id\":\"247\",\"webby\":\"Yes\",\"date\":\"March-01-2018\"}"
]
and here is the way i try to cast the jsonarray with gson
Gson gson = new Gson();
String jsonout = jsonArray.toString();
Type collectionType = new TypeToken<List<Passwords>>() {}.getType();
List<Passwords> navigation = gson.fromJson(jsonout, collectionType);
this is the weird error i keep getting
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 3 path $[0]
I am simply trying to pass the jsonArray to the list with gson i could really use the help