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

Popular posts from this blog

Unlimited choices in BASH case statement -

Redirect to a HTTPS version using .htaccess -

javascript - jQuery: Add class depending on URL in the best way -