Advertisement
Guest User

Untitled

a guest
Feb 13th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.84 KB | None | 0 0
  1. var json = [
  2. {
  3. "McDs": {
  4. "foods": [
  5. {
  6. "Name" : "White Meat Chicken McNuggets",
  7. "Dairy" : "N" ,
  8. "Eggs" : "N" ,
  9. "Peanut" : "N",
  10. "Shellfish" : "N",
  11. "Soy": "Y",
  12. "Wheat": "Y"
  13. },
  14. {
  15. "name": "Hamburger",
  16. "Dairy": "N",
  17. "Eggs": "N",
  18. "Peanut" : "N",
  19. "Shellfish" : "N",
  20. "Soy" : "Y",
  21. "Wheat": "Y"
  22. },
  23. {
  24. "name": "Cheeseburger",
  25. "Dairy": "N",
  26. "Eggs": "N",
  27. "Peanut" : "N",
  28. "Shellfish" : "N",
  29. "Soy" : "Y",
  30. "Wheat": "Y"
  31. },
  32. {
  33. "Name" : "Kids Fries",
  34. "Dairy": "Y",
  35. "Eggs": "N",
  36. "Peanut" : "N",
  37. "Shellfish" : "N",
  38. "Soy" : "Y",
  39. "Wheat": "Y"
  40. }
  41. ]
  42. },
  43. "Wendy's": {
  44. "foods": [
  45. {
  46. "Name" : "Grilled Chicken Wrap",
  47. "Dairy" : "Y" ,
  48. "Eggs" : "Y" ,
  49. "Peanut" : "N",
  50. "Shellfish" : "N",
  51. "Soy": "Y",
  52. "Wheat": "Y"
  53. },
  54. {
  55. "name": "Hamburger",
  56. "Dairy": "N",
  57. "Eggs": "N",
  58. "Peanut" : "N",
  59. "Shellfish" : "N",
  60. "Soy" : "N",
  61. "Wheat": "Y"
  62. },
  63. {
  64. "name": "Cheeseburger",
  65. "Dairy": "Y",
  66. "Eggs": "N",
  67. "Peanut" : "N",
  68. "Shellfish" : "N",
  69. "Soy" : "Y",
  70. "Wheat": "Y"
  71. },
  72. {
  73. "Name" : "Kids Fries",
  74. "Dairy": "N",
  75. "Eggs": "Y",
  76. "Peanut" : "N",
  77. "Shellfish" : "N",
  78. "Soy" : "N",
  79. "Wheat": "Y"
  80. }
  81. ]
  82. },
  83. "BurgerKing" : {
  84. "foods" : [
  85. {
  86. "Name" : "Chicken Nuggets",
  87. "Dairy" : "N" ,
  88. "Eggs" : "N" ,
  89. "Peanut" : "N",
  90. "Shellfish" : "N",
  91. "Soy": "N",
  92. "Wheat": "Y"
  93. },
  94. {
  95. "name": "Chicken Sandwich",
  96. "Dairy": "N",
  97. "Eggs": "N",
  98. "Peanut" : "N",
  99. "Shellfish" : "N",
  100. "Soy" : "N",
  101. "Wheat": "Y"
  102. },
  103. {
  104. "name": "HOMESTYLE CHICKEN STRIPS",
  105. "Dairy": "N",
  106. "Eggs": "Y",
  107. "Peanut" : "N",
  108. "Shellfish" : "N",
  109. "Soy" : "N",
  110. "Wheat": "Y"
  111. },
  112. {
  113. "Name" : "Fries",
  114. "Dairy": "N",
  115. "Eggs": "N",
  116. "Peanut" : "N",
  117. "Shellfish" : "N",
  118. "Soy" : "Y",
  119. "Wheat": "N"
  120. }
  121. ]
  122. },
  123. "Red Robin" : {
  124. "foods" : [
  125. {
  126. "Name" : "Chicken Nuggets",
  127. "Dairy" : "N" ,
  128. "Eggs" : "N" ,
  129. "Peanut" : "N",
  130. "Shellfish" : "N",
  131. "Soy": "N",
  132. "Wheat": "Y"
  133. },
  134. {
  135. "name": "Chicken Sandwich",
  136. "Dairy": "N",
  137. "Eggs": "N",
  138. "Peanut" : "N",
  139. "Shellfish" : "N",
  140. "Soy" : "N",
  141. "Wheat": "Y"
  142. },
  143. {
  144. "name": "HOMESTYLE CHICKEN STRIPS",
  145. "Dairy": "N",
  146. "Eggs": "Y",
  147. "Peanut" : "N",
  148. "Shellfish" : "N",
  149. "Soy" : "N",
  150. "Wheat": "Y"
  151. },
  152. {
  153. "Name" : "Fries",
  154. "Dairy": "N",
  155. "Eggs": "N",
  156. "Peanut" : "N",
  157. "Shellfish" : "N",
  158. "Soy" : "Y",
  159. "Wheat": "N"
  160. }]
  161. }
  162. }
  163. ]
  164.  
  165. $(document).ready(function()
  166. {
  167. console.log(json[0].McDs.food[1]);
  168. $("p").append(json[0].McDs.food[1].name);
  169.  
  170.  
  171. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement