Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2017
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 0.62 KB | None | 0 0
  1.  let resultJSON = {};
  2.       resultJSON.inText = JSON.stringify(decodeURIComponent(jsonResult));
  3.  
  4.       let whatIWant = resultJSON.inText.split('MCI ').pop().split(' CPF').shift();
  5.       resultJSON.MCI = whatIWant;
  6.  
  7.       whatIWant = resultJSON.inText.split('CPF ').pop().split(' Compromisso de pagamento').shift();
  8.       resultJSON.CPF = whatIWant;
  9.      
  10.       whatIWant = resultJSON.inText.split('Nome ').pop().split(' MCI').shift();
  11.       resultJSON.nome = whatIWant;
  12.  
  13.       whatIWant = resultJSON.inText.split('Valor acordado ').pop().split(' ').shift();
  14.       resultJSON.agencia = resultJSON.Nome = whatIWant2;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement