I have a set of Servlets that pass back array's of objects like
text=[{"sPK":1,"sName":"foobar","cFlag":0},
{"sPK":5,"sName":"barfoo","cFlag":1}]
In a java app I am using org.fasterXML.Jackson to read json and to read array's of this nature I use
ObjectMapper m = new ObjectMappar();
SClass[] ss = m.readValue(response.getResponse(), SClass[].class);
If I try something like this using Moshi
JsonAdapter sJsonAdapter = moshi.adapter(sClass[].class);
The app faults, is there a way to accomplish this using Moshi?