I have tried of reading values from excel and convert to JSON and everything perfect. But what I need is I know how my JSON input now should be. But in order to achieve that required JSON, I want to know how to give those values in excel. ? Kindly help me how to specify in excel and then I can able to convert that excel to JSON. I am attaching the expected JSON. so that gives me an idea on how to give excel
How should I give in excel to get this desired JSON?
Kindly help me . Since I tried using NPMSjs site but all the example they are showing was testcase1 should be given as sheet name and testcase2 should be available as sheet 2 etc. But what I want to have is inside that one sheet I want to maintain the two cases. In StackOverflow itself, I searched but what output I am required is not available. for the below output to get in JSON how to give input in excel. Please help me. I have to include and proceed automation
Currently, I am going to start Automation using protractor jasmine framework.
Sample JSON:
{
"scenario1" : [
{"product" :"Car", "code" :"221"},
{"product" :"bike", "code" :"456"},
{"product" :"scooty", "code" :"456"}
],
"scenario2" :
{"firstName" :"brand", "lastName" :"result","product":"final"}
}