I'm developing an application in Java that reads JSON from an API which returns values encoded in Base64. Here is a part of the JSON (actually, there are a lot of keys/values) :
{
"id_element": "MjUxMTEz",
"title": "VGVzdCB0aXRsZQ==",
"description": "SSBrbmV3IHlvdSB3ZXJlIHZlcnkgY3VyaW91cyAhIEhhaGEgOkQ=",
"picture": "aHR0cDovL3RoZWFydG1hZC5jb20vd3AtY29udGVudC91cGxvYWRzLzIwMTUvMDIvQ3VyaW91cy1HZW9yZ2UtV2FsbHBhcGVyLTcuanBn",
"link": "",
"id_categorie": "MTB5Nzc=",
"active": "MQ==",
"date_create": "MDAwMC0wMC0wMCAwMDowMDowMA=="
}
Is there a Java library that supports Base64 decode during deserialization or will I have to do this by myself ? I would like to have a Java object with the deserialized values from this JSON. Many thanks !