Is there any way to do a maper from a json string to another json string?
The goal is to get the value of a json property and set it to another property of the other json.
Exe;
I have json.
{
"codigo":0,
"descricao":"string",
"limiteDiario":0,
"limiteMensal":0,
"agencia":0,
"conta":0,
"codigoDoProduto":0,
"entidadePrincipal":{
"codigo":0,
"tipo":"string",
"pessoa":{
"codigo":0,
"nome":"string",
"documento":{
"codigo":0,
"numero":"string",
"dataDeEmissao":"2018-04-05T19:14:32.279Z",
"orgaoEmissor":"string",
"tipoDeDocumento":0
},
"tipoDePessoa":0,
"situacao":0
}
}
}
And I want to get the value of the description field to be in the description field of another json. the type field in ControlType and so on.
{
"codigo":0,
"descricao":"string",
"parametros":{
"codigo":0,
"tipoDeControle":0,
"numero":0,
"orgaoEmissor":"string",
"tipoDePessoa":0
}
}
I saw that you have some libraries like link and link , but I did not quite understand how to use it.