Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let resultJSON = {};
- resultJSON.inText = JSON.stringify(decodeURIComponent(jsonResult));
- let whatIWant = resultJSON.inText.split('MCI ').pop().split(' CPF').shift();
- resultJSON.MCI = whatIWant;
- whatIWant = resultJSON.inText.split('CPF ').pop().split(' Compromisso de pagamento').shift();
- resultJSON.CPF = whatIWant;
- whatIWant = resultJSON.inText.split('Nome ').pop().split(' MCI').shift();
- resultJSON.nome = whatIWant;
- whatIWant = resultJSON.inText.split('Valor acordado ').pop().split(' ').shift();
- resultJSON.agencia = resultJSON.Nome = whatIWant2;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement