Covert JSON to XML
Software Quality Assurance Forums: Parsing JSON formatted file
I am working on automation of REST api testing (json) format.
I am trying to extract data from this json file. because I didnt find any direct way, I am thinking to convert JSON to XML anf then extract data.
I tried this conversion using online tool - Free Online JSON to XML Converter - FreeFormatter.com.
and it is working fine. It convets to xml and i am able to extract all the required data from xml.
My question here is: How to convert JSON to XML using qtp/vbscript? (as I can not use above online tool for automation purpose at runtime)
Last edited by john12345; 05-03-2013 at 03:00 AM.
See if it helps
?VBS??JSON?????VbsJson? | Demon's Blog
In loadrunner i use custom request but it is of no use for you I guess
Would using programatic code to get the output assist you at all? I don't know about JSON. I have some code in recent threads that show how to send/get data without the REST Client.
You can loop request for n-number of times and send REST request
See if it give you clue.
How to POST JSON data with Curl from Terminal/Commandline to Test Spring REST? - Stack Overflow
I did looping with shell by cygwin on window. You can use batch file instead
Last edited by Yogi_Shukla; 05-03-2013 at 02:10 PM.
I have a possible solution, will post some details later
Its very helpful ... Thanks a lot!
I'll check this and let you know the outcome. thnx!