JSON Fresco Play Hands-On Solutions
1.Welcome to JSON schema validation : Change datatypes and return required JSON data
Verify JSON Datatypes - Hands-On(15 min)
File Name: tindex.js
module.exports= function(){
const data = require("./testdata.json");
/*Explore the JSON file and return required JSON data*/
var json = JSON.parse(data).studentData;
json.forEach(function(element, index){
element['aggregate'] = parseInt(element['aggregate']);
element.forEach(function(per,ind){
per['sub1'] = parseInt(per['sub1']);
per['sub2'] = parseInt(per['sub2']);
per['sub3'] = parseInt(per['sub3']);
});
});
return json;
}
- List of Fresco Play Courses without Hands-On | Fresco Play
- HMTL5 Semantics Elements MCQs Answers | Fresco Play
- HMTL5 Semantics Elements Hands-On Solutions | Fresco Play
- Styling with CSS3 Hands-On Solutions | Fresco Play
- Blockchain Intermedio MCQs Answers | Fresco Play
- Blockchain - Potentes Nexus MCQs Answers | Fresco Play
- Azure Essentials MCQs Answers | Fresco Play
- AWS Essentials MCQs Answers | Fresco Play
2.Welcome to JSON Data structuring : Create JSON data with Person Object
Looping and Creating Object - Hands-On(15 min)
File Name: data.json
{
"persons":{
"Name":"Notes Bureau",
"EmployeeID": 12321,
"Experience" : 3,
"Company": "Notes Bureau",
"Designation": "Software Engineer"
}
}
3.Welcome to JSON Data structuring : Create Array of Favorite Food items objects
JSON.parse() - Hands-On
File Name: data.json
[
{"Name":"Notes Bureau","Type":"Notes Provider","Price":0},
{"Name":"Notes Bureau","Type":"Solution Provider","Price":0},
{"Name":"Notes Bureau","Type":"Content Provider","Price":0}
]
If you want answers to any of the fresco play courses feel free to ask in the comment section, we will surely help.