Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var json = [
- {
- "McDs": {
- "foods": [
- {
- "Name" : "White Meat Chicken McNuggets",
- "Dairy" : "N" ,
- "Eggs" : "N" ,
- "Peanut" : "N",
- "Shellfish" : "N",
- "Soy": "Y",
- "Wheat": "Y"
- },
- {
- "name": "Hamburger",
- "Dairy": "N",
- "Eggs": "N",
- "Peanut" : "N",
- "Shellfish" : "N",
- "Soy" : "Y",
- "Wheat": "Y"
- },
- {
- "name": "Cheeseburger",
- "Dairy": "N",
- "Eggs": "N",
- "Peanut" : "N",
- "Shellfish" : "N",
- "Soy" : "Y",
- "Wheat": "Y"
- },
- {
- "Name" : "Kids Fries",
- "Dairy": "Y",
- "Eggs": "N",
- "Peanut" : "N",
- "Shellfish" : "N",
- "Soy" : "Y",
- "Wheat": "Y"
- }
- ]
- },
- "Wendy's": {
- "foods": [
- {
- "Name" : "Grilled Chicken Wrap",
- "Dairy" : "Y" ,
- "Eggs" : "Y" ,
- "Peanut" : "N",
- "Shellfish" : "N",
- "Soy": "Y",
- "Wheat": "Y"
- },
- {
- "name": "Hamburger",
- "Dairy": "N",
- "Eggs": "N",
- "Peanut" : "N",
- "Shellfish" : "N",
- "Soy" : "N",
- "Wheat": "Y"
- },
- {
- "name": "Cheeseburger",
- "Dairy": "Y",
- "Eggs": "N",
- "Peanut" : "N",
- "Shellfish" : "N",
- "Soy" : "Y",
- "Wheat": "Y"
- },
- {
- "Name" : "Kids Fries",
- "Dairy": "N",
- "Eggs": "Y",
- "Peanut" : "N",
- "Shellfish" : "N",
- "Soy" : "N",
- "Wheat": "Y"
- }
- ]
- },
- "BurgerKing" : {
- "foods" : [
- {
- "Name" : "Chicken Nuggets",
- "Dairy" : "N" ,
- "Eggs" : "N" ,
- "Peanut" : "N",
- "Shellfish" : "N",
- "Soy": "N",
- "Wheat": "Y"
- },
- {
- "name": "Chicken Sandwich",
- "Dairy": "N",
- "Eggs": "N",
- "Peanut" : "N",
- "Shellfish" : "N",
- "Soy" : "N",
- "Wheat": "Y"
- },
- {
- "name": "HOMESTYLE CHICKEN STRIPS",
- "Dairy": "N",
- "Eggs": "Y",
- "Peanut" : "N",
- "Shellfish" : "N",
- "Soy" : "N",
- "Wheat": "Y"
- },
- {
- "Name" : "Fries",
- "Dairy": "N",
- "Eggs": "N",
- "Peanut" : "N",
- "Shellfish" : "N",
- "Soy" : "Y",
- "Wheat": "N"
- }
- ]
- },
- "Red Robin" : {
- "foods" : [
- {
- "Name" : "Chicken Nuggets",
- "Dairy" : "N" ,
- "Eggs" : "N" ,
- "Peanut" : "N",
- "Shellfish" : "N",
- "Soy": "N",
- "Wheat": "Y"
- },
- {
- "name": "Chicken Sandwich",
- "Dairy": "N",
- "Eggs": "N",
- "Peanut" : "N",
- "Shellfish" : "N",
- "Soy" : "N",
- "Wheat": "Y"
- },
- {
- "name": "HOMESTYLE CHICKEN STRIPS",
- "Dairy": "N",
- "Eggs": "Y",
- "Peanut" : "N",
- "Shellfish" : "N",
- "Soy" : "N",
- "Wheat": "Y"
- },
- {
- "Name" : "Fries",
- "Dairy": "N",
- "Eggs": "N",
- "Peanut" : "N",
- "Shellfish" : "N",
- "Soy" : "Y",
- "Wheat": "N"
- }]
- }
- }
- ]
- $(document).ready(function()
- {
- console.log(json[0].McDs.food[1]);
- $("p").append(json[0].McDs.food[1].name);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement