Preethi Ravi
Preethi Ravi

Reputation: 101

Do we have any in-built keyword / demo file for converting json to xml and xml to json in karate framework?

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

Answers (1)

Peter Thomas
Peter Thomas

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

Related Questions