converting mediawiki pages to json