Use JSON instead of XML data for get_codex_count()