How to pass data from csv file to JSON
Hi I have a requirement where I Need to pass parametrized data stored in csv to a json array. How to achieve this
FOR E.G-> I need to pass different values of lat,lng from csv file.
{ "stops": [ { "lat": 22.344674, "lng": 114.124651 }, { "lat": 22.375384, "lng": 114.182446 } ] }
Please share your query in the Query resolution section of the course you're referring to
This query is regarding Rest API that undergoes selenium datadriven framework.
To achieve this you need to write your own custom code.
JsonObject and JsonArray
Alternatively, you can refer the page below as well.
https://stackoverflow.com/questions/22383093/java-application-that-converts-csv-to-json
Thanks sir..That would help a lot..
We offer online selenium and UFT/QTP training. The course is very comprehensive and covers every aspect of automation testing with UFT/QTP and selenium. All types of frameworks are covered in depth - data driven framework, hybrid framework, page object model with a live project
© 2020 Whizdom Trainings. All rights Reserved - Powered by Whizdom Trainings