Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "user1": [{
- "idm": [{
- "name": "Jane Smith",
- "email": "user1@example.com"
- }],
- "em": [{
- "name": "Jane Smith",
- "email": "user1@example.com"
- }],
- "fm": [{
- "name": "Jane Smith",
- "email": "user1@example.com"
- }]
- }],
- "user2": [{
- "idm": [{
- "name": "John Smith",
- "email": "user2@example.com"
- }],
- "em": [{
- "name": "John Smith",
- "email": "user2@example.com"
- }],
- "fm": [{
- "name": "John Smith",
- "email": "user2@example.com"
- }]
- }]
- }
- userData = {};
- user = 'user1'
- this.idm['name'] = name;
- this.idm['email'] = email;
- this.userData[user].push(this.idm);
- this.em['name'] = name;
- this.em['email'] = email;
- this.userData[user].push(this.em);
- this.fm['name'] = name;
- this.fm['email'] = email;
- this.userData[user].push(this.fm);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement