I have a problem using Boolean wrapper with JSON Object, when JSON object is created for Boolean values it contain string cotes for example "isUrgent" : "1" Now the issue is I have to wrap it manually in my code each time for each request/response
Can any body please provide me a permanent solution for above problem?
The solution is to customize the deserializer for the boolean type. All you need to do is add extra deserializer which could handle the case of particular String values which you aim to deserialize as the booleans.
Following blog post explains it in detail.
http://hussainpithawala.wordpress.com/2011/05/11/overriding-default-serializationdeserialization-behaviour-of-jackson-json-serializer/