JSON Hands-On Solution | TCS Fresco Play | TCS | MNC Answers
Disclaimer: The primary purpose of providing this solution is to assist and support anyone who are unable to complete these courses due to a technical issue or a lack of expertise. This website's information or data are solely for the purpose of knowledge and education.
Make an effort to understand these solutions and apply them to your Hands-On difficulties. (It is not advisable that copy and paste these solutions).
All Question of the MCQs Present Below for Ease Use Ctrl + F with the question name to find the Question. All the Best!
JSON Fresco Play Hands-On Solution
The Course Id is 55929.
1. JSON schema validation: Change datatypes and return required JSON data
module.exports= function(){
const data = require("./testdata.json");
/*Explore the JSON file and return the required JSON data*/
var json = JSON.parse(data).studentData;
json.forEach(function(element,index){
element['aggregate'] = parseInt(element['aggregate']);
per['sub1'] = parseInt(per['sub1']);
per['sub2'] = parseInt(per['sub2']);
per['sub3'] = parseInt(per['sub3']);
});
return json;
}
2. JSON Data structuring: Create JSON data with Person Object (data.json)
{
"persons":{
"Name":"JSON EXAMPLE",
"EmployeeID": 1234,
"Experience": 2,
"Company":"JSON COMPANY",
"Designation": "SOFTWARE"
}
}
3.JSON Data structuring: Create an Array of Favorite Food items objects
[
{"Name":"JSON NAME1","Type":"JSON TYPE 1","Price":0},
{"Name":"JSON NAME2","Type":"JSON TYPE 2","Price":0},
{"Name":"JSON NAME3","Type":"JSON TYPE 3","Price":0}
]
*******************************
Mini-Project - Java Full Stack Developer - JPA_FP Hands-On Solutions | TCS Fresco Play
*********************************Credit for the above notes, goes to the respective owners.If you have any queries, please feel free to ask on the comment section.If you want MCQs and Hands-On solutions for any courses, Please feel free to ask on the comment section too.Please share and support our page!
Post a Comment