Fix codex feeds to use JSON

Not sure if there was a reason to choose serialized data and XML for the codex feeds. This pull request changes both codex methods to use JSON. I did update the intending for arrays too.