java - Not having a getter method in POJO does not set the values via setter method -
i using org.json
library json parsing. have experienced when have 2 methods getname()
, setname()
, if comment getter method in pojo
class, setter method not work .
but if don't, works. why happens? can't set value in pojo
, convert json string?
can't set value in pojo , convert json string?
if comment out getter method, json library no longer serialize property, because has no way property.
Comments
Post a Comment