If I need to send a array of objects to Cuba Rest API, how should my service method signature look? So from JS, if I am sending an array like this after JSON Stringify, how will my Java method signature look.
Thanks @gorbunkov.
Here is what I did. It might help some one.
I Stringified the object in JS. So in Cuba I could get as string itself.
public BigDecimal GetCarDetails2(String carStructure) {
Gson gson = new Gson();
Type collectionType = new TypeToken<Collection>(){}.getType();