I want send a HashMap
from JS application to my Google App. I created a HashMapContainer
class such as in : Cloud Endpoints C
The example in This doc shows the annotations used in a different order from what your code shows.
public Resource get(@Named("id") @Nullable int id) { … }
So according to this, your
@Nullable @Named('param2') HashMapContainer param2) {
should become
@Named('param2') @Nullable HashMapContainer param2) {
I tested it out both ways - only the latter seems to work for me.