Hello friends if you are looking for JSON_FP Multiple choice questions | JSON_FP MCQ with Questions Answers | JSON_FP Objective type questions | JSON_FP TCS Fresco Play Question Answers
Course Id is 55929.
1. JSON schema validation: Change datatypes and return required JSON data
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzPQFTSVTCSMNg6i0n1AiwZoVJyd-Xh80piAagIXhtH-WFdj6DhXb2kS8slQXlsqOJYWYgNfzs3L1J9MMjLF_DAieQj1agTQJl598O__y3AnAEbaitUeIG1iX_xU7UNb5jxIBFlg74KGTjhmeVgifIrkajsxLW-ZL5hMM3nT7836DUAGJQ7PJ6Sope/w640-h320/Json%20Schema%20Validation%20Change%20datatypes%20and%20return%20required%20JSON%20data.png)
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)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGMUjqfOHJyPNFMK_DE5bZmyoL4Wkqmdu2H7mZl8BMrN-HD1-lfje2nCYRihsSH0RjuQwe4rdiU-__KxRNcnYofkzk_5L28f4qZNTWBXTLJMSB5Gb-miBO_8kjIRMqYFQP6Z75ylH3IMgib5VG--wY-bGC-_h4GtdDeJ6bHpjRVFhPVVf6NPHbW_nA/w640-h320/JSON%20Data%20structuring%20Create%20JSON%20data%20with%20Person%20Object.png)
{
“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
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8enP1V66AEjtsGy3i8XCF3ePoSlawIiSXNbqkkRYPuIksOyR1YF4wmJNp248wzyV1QGFpEWilk1Jlqslcusb3w1_vzkyOU4RI5lNx2lKy95B9pCYrc6oJtRjgtyhzeH0lmypR-mGzZkpCHm5DKSK-M3-mJXk69G9Oxr3Atytiej1aQjENIXFElDZj/w640-h320/JSON%20Data%20structuring%20Create%20Array%20of%20Favorite%20Food%20items%20objects.png)
[
{“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}
]