Hi,
I want to extrat different values corresponding to the next keys: nes, nis and numPolicy. Sometimes these values are inside the JSON file and, if this is the case, i want to get them and store them in a variable.
If been trying deserializing the JSON but i have not achieved any progress
I attach an example of how the JSON files look like:
{
“process”: “liquidation”,
“salesforceCase”: “sales-1234”,
“salesforceId”: “slfid-001”,
“mailBox”: “juan@gmail.com”,
“expedient”: “exp-001”,
“documentId”: “doc-001”,
“documentName”: “mail-doc-001-1670224778775”,
“result”: [
{
“pages”: [
1
],
“categories”: [
{
“category”: “mail”,
“confidence”: 0.9856
},
{
“category”: “herederosTestamento”,
“confidence”: 0.0012
},
{
“category”: “cuentaBancaria”,
“confidence”: 0.001
},
{
“category”: “factura”,
“confidence”: 0.0009
},
{
“category”: “impuestoSucesiones”,
“confidence”: 0.0006
},
{
“category”: “ultimasVoluntades”,
“confidence”: 0.0004
},
{
“category”: “libroFamilia”,
“confidence”: 0.0003
},
{
“category”: “dni”,
“confidence”: 0.0001
}
],
“data”: [
{
“key”: “nes”,
“value”: [
“20220005890”
],
“confidence”: 0.9
},
{
“key”: “nis”,
“value”: ,
“confidence”: 0
},
{
“key”: “numPolicy”,
“value”: [
“1217397”
],
“confidence”: 0.9
}
]
}
]
}
THANKS!!