Converting all XML posts to JSON