I have a json array as a string in the following format:
[ "Ford", "BMW", "Fiat" ]
which is a legal json string. How am I able to use Gson to save into an object? When I am trying to use getAsJsonArray(), but I get an error:
java.lang.IllegalStateException: This is not a JSON Array.