Looking at the documentation, the problem is that your json doesn't declare its class. This means that you explicitly need to supply a Class
object to the deserializer, as in Java generics are only compile time, not runtime.
To quote from the documentation:
We need to replace the type information we just dropped when we instantiate the deserializer. To do that we'll pass the class we want to use into to
flexjson.JSONDeserializer.deserialize(String, Class)
method like so:Hero hero = new JSONDeserializer<Hero>().deserialize( jsonHarvey, Hero.class );
So use:
Signin signin = deserializer.deserialize(json, Signin.class);