Search This Blog

Create JSON data with Person Object -- JSON Data Structuring HackerRank Solutions Fresco Play

This is JSON validation test.

This Test requires the knowledge about JSON data structuring and valid data types used.

The data should be written in data.json file.

Tasks to be done:

Create a JSON Object "persons" with fields

  • Name
  • Employee ID
  • Experience
  • Company
  • Designation
Note: 
  • Have idea about the data types used in json data.
  • Select Run -> Install to install the dependencies.
  • Select Run -> Run Server to start your application
  • Select Run -> Test to run the test cases.

Answer:

{

  "persons":{
    "Name":"Teja",
    "EmployeeID"12321,
    "Experience" : 3,
    "Company""TCS",
    "Designation""Software Engineer"
  }
}


Image for Reference:






















1 comment:

  1. Can you post the complete solution for second file where we need to load json data and loop through the object properties

    ReplyDelete

If you have any doubts, Please let us know.