I have a String value
field inside my object, but this field can be even true or false. Now the mapping create value: "true"
like a String
and this create problem with some angularjs ng-model
mapping because it wants a boolean
.
There is a way to indicate to Spring
/Jackson
that the String
with true or false must be without ""
?
Or you have some advice to converte easly this value to boolean?
At the moment I'm initializing the value through javascript with code like this
if ($(element)[0].value == "true")
$(element).iCheck('check');
else
$(element).iCheck('update');
but it is a work-around and I have a problem with value change (I posted a question here). The only solution is to change this value into javascript? Thanks