I have a JSON like below and I want to generate the Java object of the respective class by parsing it. The catch is that I don't want the value for maxtime in that object to be set as {{ Instant.MAX.toString()}}, but it should be its translated value, which means it should be +1000000000-12-31T23:59:59.999999999Z. Is there any standard library to achieve this similar requirement or I will have to write a customized code for this?
{
"key1": "",
"key2": "",
"key3": {
"maxTime": "{{ Instant.MAX.toString()}}",
"anotherKey": "{{MyProjectUtils.getKey()}}"
}
}
In the worst case, I am ready to replace this JSON file with some other type of file but at the end, I want a java object with translated values.