Reputation: 101
Payload input of type json or xml. Do we have any option / in-built keywords in Karate framework for converting the json to xml or xml to json.
Upvotes: 0
Views: 266
Reputation: 58058
Yes, you should really read the documentation.
First read this: https://github.com/intuit/karate#type-conversion
If you have some very specific needs, refer to the set
keyword and these examples: https://github.com/intuit/karate/blob/master/karate-junit4/src/test/java/com/intuit/karate/junit4/xml/xml.feature#L150
Upvotes: 1