NoSuchMethodException while converting a JSONObject to bean
Brought to you by:
aalmiray
Consider a bean containing java.sql.Timestamp property.
When this bean is converted to JSONObject and then back to bean using JSONObject.toBean(jsonObj, beanClass), NoSuchMethodException occurs.
The above situation happens only if the bean has a setter method for the Timestamp property.
P.S: Attached the Testcase for your reference.
Thanks
Ezhil
TestCase to test the above scenario