Plugins for XML to JSON


#1

Hi,
I’m new to Kong. Wondering if there are plugins available or if anyone has developed custom plugins for converting from XML to JSON and other way around?


#2

None that I have found. There are some XML parse libraries in lua but none seem as good as cjson is to json content imo. You can write a Kong plugin to do some of that conversion logic using the xml libs and cjson.

https://github.com/manoelcampos/xml2lua for example