1function createJSON() {
2 jsonObj = [];
3 $("input[class=email]").each(function() {
4
5 var id = $(this).attr("title");
6 var email = $(this).val();
7
8 item = {}
9 item ["title"] = id;
10 item ["email"] = email;
11
12 jsonObj.push(item);
13 });
14
15 console.log(jsonObj);
16}