XML to JSON conversion with Multi-Valued Fields

If I have the following XML:

< keyword>dog< /keyword>
< keyword>pony< /keyword>

And want to convert it to (using groovy) an elasticsearch item:


How do i do so without the extra keyword tag:


That's not looking like an elasticsearch question but a groovy one. You should better ask in groovy forums.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.