I have a json file, employee.json, which I would like to add to this object. The file is as follows:
var txt = '{"employees":[' + '{"firstName":"Jerry","lastName":"Negrell","time":"9:15 am","email":" jerry@bah.com ","phone":"800-597-9405","image":"images/jerry.jpg" },' + '{"firstName":"Ed","lastName":"Snide","time":"9:00 am","email":" edward@bah.com ","phone":"800-597-9406","image":"images/ed.jpg" },' + '{"firstName":"Pattabhi","lastName":"Nunn","time":"10:15 am","email":" pattabhi@bah.com ","phone":"800-597-9407","image":"images/pattabhi.jpg" }'+ ']}';
I'd like to add:
- Name: Mike
- LastName: Track
- time: 10 a.m.
- Email: rut@bah.com
- phone: 800-888-8888
- images: images /mike.jpg
to employee.json.
How to do it?
source share