Is default no-args constructor mandatory for Gson?
Gson user guide states that we should define default no-args constructor for any class to work with Gson properly. Even more, in the javadoc on Gson's InstanceCreator class said that exception will be thrown if we try to deserialize instance of class missing default constructor and we should use InstanceCreator in such cases. However, I've tried to test use Gson with class lacking default constructor and both serialization and deserialization work without any trouble. Here is the piece of code for deserializaiton. A class without non-args constructor: public class Mushroom { private String