I've got a JSON that looks like this
{
"file": "sample.txt",
"valid": "true",
"parameters": {
"size": "15kb",
"charset": "UTF-8",
....
}
}
But I want to deserialize it as a single object. Not like this
class ValidatedFile {
String file;
boolean valid;
FileParameters params;
}
but like this
class ValidatedFile {
String file;
boolean valid;
String size;
String charset;
....
}
I need to do some kind of unwrapping of this object.
How to do it using jackson
?