Guest User

Untitled

a guest
Aug 10th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. How can I prevent jQuery's $.getJSON from converting my ajax response keys from strings to integers?
  2. {"2":"aaron@mail.com","1":"bernard@mail.com"}
  3.  
  4. $.getJSON('urlwithjsonresponse.com',function(response){
  5. console.log(response);
  6. });
  7.  
  8. {1:"bernard@mail.com",2:"aaron@mail.com"}
Add Comment
Please, Sign In to add comment