Hi I am trying to use GSON class to convert the following Json string.
{"data":
{"detections":
[
[
{"language":"en","isReliable":false,"confidence":0.9759119}
]
]
}
}
I get this error. com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at com.google.gson.Gson.fromJson(Gson.java:731)
What should be the class hierarchy for this?