Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. {
  2. "user1": [{
  3. "idm": [{
  4. "name": "Jane Smith",
  5. "email": "user1@example.com"
  6. }],
  7. "em": [{
  8. "name": "Jane Smith",
  9. "email": "user1@example.com"
  10. }],
  11. "fm": [{
  12. "name": "Jane Smith",
  13. "email": "user1@example.com"
  14. }]
  15. }],
  16. "user2": [{
  17. "idm": [{
  18. "name": "John Smith",
  19. "email": "user2@example.com"
  20. }],
  21. "em": [{
  22. "name": "John Smith",
  23. "email": "user2@example.com"
  24. }],
  25. "fm": [{
  26. "name": "John Smith",
  27. "email": "user2@example.com"
  28. }]
  29. }]
  30. }
  31.  
  32. userData = {};
  33. user = 'user1'
  34.  
  35. this.idm['name'] = name;
  36. this.idm['email'] = email;
  37. this.userData[user].push(this.idm);
  38.  
  39. this.em['name'] = name;
  40. this.em['email'] = email;
  41. this.userData[user].push(this.em);
  42.  
  43. this.fm['name'] = name;
  44. this.fm['email'] = email;
  45. this.userData[user].push(this.fm);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement