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.
Text to be done.
Create a JSON Array of Objects with fields
- Name
- Type
- Price
After writing the JSON data, import the json data in loopObject.js and modify the data as per your wish.
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:
[
{"Name":"techfreaktej.blogspot.com","Type":"Solution Provider","Price":0},
{"Name":"techfreaktej.blogspot.com","Type":"Notes Provider","Price":0},
{"Name":"techfreaktej.blogspot.com","Type":"Content Provider","Price":0}
]
Image for Reference:
No comments:
Post a Comment
If you have any doubts, Please let us know.