This repository has been archived by the owner on Sep 10, 2023. It is now read-only.
forked from LinkedInLearning/json-essential-training-2887317
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
101 changed files
with
2,319 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"point": "Mount Everest", | ||
"volcano": "Ojos del Salado", | ||
"glacier": "Khumbu Glacier" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[ | ||
"Mount Everest", | ||
"K2", | ||
"Kangchenjunga" | ||
] |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"point": "Mount Everest", | ||
"volcano": "Ojos del Salado", | ||
"glacier": "Khumbu Glacier" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[ | ||
"Mount Everest", | ||
"K2", | ||
"Kangchenjunga" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,160 @@ | ||
{ | ||
"?xml": { | ||
"@version": "1.0", | ||
"@encoding": "utf-8" | ||
}, | ||
"root": { | ||
"@id": "1", | ||
"uri": { | ||
"#cdata-section": "http://api.bart.gov/api/etd.aspx?cmd=etd&orig=12th&json=y" | ||
}, | ||
"date": "03/27/2021", | ||
"time": "01:12:01 PM PDT", | ||
"station": [ | ||
{ | ||
"name": "12th St. Oakland City Center", | ||
"abbr": "12TH", | ||
"etd": [ | ||
{ | ||
"destination": "Antioch", | ||
"abbreviation": "ANTC", | ||
"limited": "0", | ||
"estimate": [ | ||
{ | ||
"minutes": "20", | ||
"platform": "3", | ||
"direction": "North", | ||
"length": "10", | ||
"color": "YELLOW", | ||
"hexcolor": "#ffff33", | ||
"bikeflag": "1", | ||
"delay": "0" | ||
}, { | ||
"minutes": "49", | ||
"platform": "3", | ||
"direction": "North", | ||
"length": "10", | ||
"color": "YELLOW", | ||
"hexcolor": "#ffff33", | ||
"bikeflag": "1", | ||
"delay": "0" | ||
}, { | ||
"minutes": "79", | ||
"platform": "3", | ||
"direction": "North", | ||
"length": "10", | ||
"color": "YELLOW", | ||
"hexcolor": "#ffff33", | ||
"bikeflag": "1", | ||
"delay": "0" | ||
} | ||
] | ||
}, { | ||
"destination": "Berryessa", | ||
"abbreviation": "BERY", | ||
"limited": "0", | ||
"estimate": [ | ||
{ | ||
"minutes": "8", | ||
"platform": "2", | ||
"direction": "South", | ||
"length": "8", | ||
"color": "ORANGE", | ||
"hexcolor": "#ff9933", | ||
"bikeflag": "1", | ||
"delay": "0" | ||
}, { | ||
"minutes": "38", | ||
"platform": "2", | ||
"direction": "South", | ||
"length": "8", | ||
"color": "ORANGE", | ||
"hexcolor": "#ff9933", | ||
"bikeflag": "1", | ||
"delay": "0" | ||
}, { | ||
"minutes": "68", | ||
"platform": "2", | ||
"direction": "South", | ||
"length": "8", | ||
"color": "ORANGE", | ||
"hexcolor": "#ff9933", | ||
"bikeflag": "1", | ||
"delay": "0" | ||
} | ||
] | ||
}, { | ||
"destination": "Richmond", | ||
"abbreviation": "RICH", | ||
"limited": "0", | ||
"estimate": [ | ||
{ | ||
"minutes": "19", | ||
"platform": "1", | ||
"direction": "North", | ||
"length": "8", | ||
"color": "ORANGE", | ||
"hexcolor": "#ff9933", | ||
"bikeflag": "1", | ||
"delay": "0" | ||
}, { | ||
"minutes": "49", | ||
"platform": "1", | ||
"direction": "North", | ||
"length": "8", | ||
"color": "ORANGE", | ||
"hexcolor": "#ff9933", | ||
"bikeflag": "1", | ||
"delay": "0" | ||
}, { | ||
"minutes": "79", | ||
"platform": "1", | ||
"direction": "North", | ||
"length": "8", | ||
"color": "ORANGE", | ||
"hexcolor": "#ff9933", | ||
"bikeflag": "1", | ||
"delay": "0" | ||
} | ||
] | ||
}, { | ||
"destination": "SF Airport", | ||
"abbreviation": "SFIA", | ||
"limited": "0", | ||
"estimate": [ | ||
{ | ||
"minutes": "5", | ||
"platform": "2", | ||
"direction": "South", | ||
"length": "10", | ||
"color": "YELLOW", | ||
"hexcolor": "#ffff33", | ||
"bikeflag": "1", | ||
"delay": "0" | ||
}, { | ||
"minutes": "35", | ||
"platform": "2", | ||
"direction": "South", | ||
"length": "10", | ||
"color": "YELLOW", | ||
"hexcolor": "#ffff33", | ||
"bikeflag": "1", | ||
"delay": "0" | ||
}, { | ||
"minutes": "65", | ||
"platform": "2", | ||
"direction": "South", | ||
"length": "10", | ||
"color": "YELLOW", | ||
"hexcolor": "#ffff33", | ||
"bikeflag": "1", | ||
"delay": "0" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"message": "" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"Highest Peaks": [ | ||
"Mount Everest", | ||
"K2", | ||
"Kangchenjunga" | ||
], | ||
"Lowest Points": [ | ||
"Dead Sea", | ||
"Lake Assal", | ||
"Turpan Pendi" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"point": "Mount Everest", | ||
"volcano": "Ojos del Salado", | ||
"glacier": "Khumbu Glacier" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[ | ||
"Mount Everest", | ||
"K2", | ||
"Kangchenjunga" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
'item': "DuroSport 5", | ||
"manufacturer": 'Prism', | ||
"wholesalePrice": 84., | ||
"listPrice": 099.95, | ||
"inStock": true, | ||
// add listPriceHistory array | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
'item': "DuroSport 5", | ||
"manufacturer": 'Prism', | ||
"wholesalePrice": 84., | ||
"listPrice": 099.95, | ||
"inStock": true, | ||
// add listPriceHistory array | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"item": "DuroSport 5", | ||
"manufacturer": "Prism", | ||
"wholesalePrice": 84.00, | ||
"listPrice": 99.95, | ||
"inStock": true, | ||
"listPriceHistory": [ | ||
94.95, | ||
85.00, | ||
124.95 | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
const products = '[{"id":"530","name":"Bamboo Thermal Ski Coat","image_title":"ski-coat_lynda_29940","image":"https://hplussport.com/wp-content/uploads/2016/12/ski-coat_LYNDA_29940.jpg"},{"id":"436","name":"Blueberry Mineral Water","image_title":"mineral-water-blueberry_600px","image":"https://hplussport.com/wp-content/uploads/2015/12/mineral-water-blueberry_600px.png"}]'; | ||
|
||
// Add code to parse the products variable here: | ||
|
||
|
||
const item = '{"id":"530","name":"Bamboo Thermal Ski Coat","image_title":"ski-coat_lynda_29940","image":"https://hplussport.com/wp-content/uploads/2016/12/ski-coat_LYNDA_29940.jpg"}'; | ||
|
||
// Add code to parse the item variable here: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const products = '[{"id":"530","name":"Bamboo Thermal Ski Coat","image_title":"ski-coat_lynda_29940","image":"https://hplussport.com/wp-content/uploads/2016/12/ski-coat_LYNDA_29940.jpg"},{"id":"436","name":"Blueberry Mineral Water","image_title":"mineral-water-blueberry_600px","image":"https://hplussport.com/wp-content/uploads/2015/12/mineral-water-blueberry_600px.png"}]'; | ||
|
||
let productsParsed = JSON.parse(products); | ||
|
||
const item = '{"id":"530","name":"Bamboo Thermal Ski Coat","image_title":"ski-coat_lynda_29940","image":"https://hplussport.com/wp-content/uploads/2016/12/ski-coat_LYNDA_29940.jpg"}'; | ||
|
||
let itemParsed = JSON.parse(item); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
let cart = [ | ||
{ | ||
productId: "530", | ||
itemKey: "34354b059d38a963ba3a1bed499f593d", | ||
itemName: "Bamboo Thermal Ski Coat", | ||
variations: { | ||
sizeWomens: "medium", | ||
color: "periwinkle", | ||
price: 99.00, | ||
} | ||
}, | ||
{ | ||
productId: "532", | ||
itemKey: "a14cab08bca65354fd65dc6482a55ff5", | ||
itemName: "Slicker Jacket", | ||
variations: { | ||
sizeMens: "large", | ||
color: "lemon", | ||
price: 125.00, | ||
} | ||
} | ||
]; | ||
|
||
// Enter code to stringify the `cart` variable here: | ||
|
||
|
||
let single = { | ||
productId: "530", | ||
itemKey: "34354b059d38a963ba3a1bed499f593d", | ||
itemName: "Bamboo Thermal Ski Coat", | ||
variations: { | ||
sizeWomens: "medium", | ||
color: "periwinkle", | ||
price: 99.00, | ||
} | ||
}; | ||
|
||
// Enter code to stringify the `single` variable here: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
let cart = [ | ||
{ | ||
productId: "530", | ||
itemKey: "34354b059d38a963ba3a1bed499f593d", | ||
itemName: "Bamboo Thermal Ski Coat", | ||
variations: { | ||
sizeWomens: "medium", | ||
color: "periwinkle", | ||
price: 99.00, | ||
} | ||
}, | ||
{ | ||
productId: "532", | ||
itemKey: "a14cab08bca65354fd65dc6482a55ff5", | ||
itemName: "Slicker Jacket", | ||
variations: { | ||
sizeMens: "large", | ||
color: "lemon", | ||
price: 125.00, | ||
} | ||
} | ||
]; | ||
|
||
const cartJson = JSON.stringify(cart); | ||
|
||
let single = { | ||
productId: "530", | ||
itemKey: "34354b059d38a963ba3a1bed499f593d", | ||
itemName: "Bamboo Thermal Ski Coat", | ||
variations: { | ||
sizeWomens: "medium", | ||
color: "periwinkle", | ||
price: 99.00, | ||
} | ||
}; | ||
|
||
const singleJson = JSON.stringify(single); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
const queue = '[{"id":"394","title":"Eat your veggies"},{"id":"378","title":"Every step counts"},{"id":"406","title":"Giving Back"}]'; | ||
|
||
// Enter code to destringify the `queue` variable here: | ||
|
||
|
||
const item = '{"id":"406","title":"Giving Back"}'; | ||
|
||
// Enter code to destringify the `item` variable here: | ||
|
Oops, something went wrong.