JSON parse error: Can not construct instance of model.Class: no suitable constructor found

reference:http://blog.csdn.net/qq_33642117/article/details/51909346

当类中没有定义构造函数时,系统会指定给该类加上一个空参数的构造函数。这个是类中默认的构造函数。当类中如果自定义了构造函数,这时默认的构造函数就没有了.so,我们要构造一个空的构造函数,函数名要与类名一样。

原文地址:https://www.cnblogs.com/vickey-wu/p/8192309.html