I am writing an RSS feed (for fun) and was looking at the spec here.
RSS is a dialect of XML. All RSS files must conform to the XML 1.0 specification,
I know this is a fairly old question, and maybe irrelevant now.
However. I would suggest anyone looking to publish a RSS-like feed in JSON should use a new format that is rapidly gaining adoption; JSONFeed (https://jsonfeed.org).