adding in the proper json data and effectivley parsing with FileReader; doing necessary things to display table

This commit is contained in:
arjunpat
2018-07-30 16:06:49 -07:00
parent f56427eec6
commit fac442ba73
4 changed files with 198 additions and 26 deletions
+56 -23
View File
@@ -1,25 +1,58 @@
[{
"first" : "John",
"last" : "Smith",
"email" : "johnsmith@gmail.com",
"phone" : 9492039201,
"address" : "12123 Stock Ave, Stockton, CA 92112",
"age" : 34
},
{
"first" : "Mike",
"last" : "Jordan",
"email" : "mekadn@gmail.com",
"phone" : 8321829301,
"address" : "2121 Elk Tree, Victorville, CA 73821",
"age" : 21
},
{
"first" : "Alex",
"last" : "Bergues",
"email" : "abuesg@gmail.com",
"phone" : "9120219293",
"address" : "81239 Oak Grove Ave, Folsom, CA 22012",
"age" : 50
"orders" :
[{
"customer_id" : 1,
"order_no" : 1,
"part_id" : 1111,
"parent_part" : 1111,
"price" : 1000,
"qty" : 2,
"paid" : 2000
},
{
"customer_id" : 1,
"order_no" : 2,
"part_id" : 2321,
"parent_part" : 1111,
"price" : 500,
"qty" : 2,
"paid" : 1000
},
{
"customer_id" : 2,
"order_no" : 3,
"part_id" : 1232,
"parent_part" : 2222,
"price" : 200,
"qty" : 1,
"paid" : 200
},
{
"customer_id" : 3,
"order_no" : 4,
"part_id" : 12321,
"parent_part" : 3333,
"price" : 100,
"qty" : 1,
"paid" : 100
},
{
"customer_id" : 3,
"order_no" : 5,
"part_id" : 3331,
"parent_part" : 1111,
"price" : 500,
"qty" : 1,
"paid" : 500
},
{
"customer_id" : 4,
"order_no" : 6,
"part_id" : 2343,
"parent_part" : 1222,
"price" : 150,
"qty" : 1,
"paid" : 150
}
]
}
]