rss-parser icon indicating copy to clipboard operation
rss-parser copied to clipboard

Renaming nested fields

Open madsfjeder opened this issue 4 years ago • 1 comments

Hi! Great library, thanks for the hard work.

I've encountered an issue (or I just don't know how to do it), where I'm trying to rename a nested field. The parsed object looks like this:

title: "Good Title", content: "Yadada", DR:XmlImageArticle: { DR:ImageUri620x349: ["URLImInterestedIn"] }

Now, I'm interested in the last item in the object above, and I can successfully rename DR:XmlImageArticle but not the nested key DR:ImageUri620x349. I can access it manually, but as I'm iterating over multiple feeds I'd really like to rename it to something more sensible. Parser options look like described in the ReadMe - including the nested value and renaming that does nothing.

parserOptions: [['DR:XmlImageArticle', "img"]]

Any help appreciated!

madsfjeder avatar Aug 02 '21 19:08 madsfjeder

Having the same issue in 2024, did you figure anything out? 😄

JacobWennebro avatar Sep 13 '24 17:09 JacobWennebro