I am using cassandra as DB and storing user address as JSON in "address" field of User object.
class User {
private long id;
private String name;
private String address;
}
Then the User row in DB columns as follows
id | name | address
================================
12345| jhon | {"hno":"12-10-46/3","street":"lavella road","city":"begaluru"}
But when I query User object from DB and returned as result of a REST api I see Jackson converting User object to JSON. But I observed that "address" field as string type instead of another JSON object. But I want that "address" should be interpreted as JSON object on client side.
How I could say jackson to convert internal string property to JSON as well?