an ugly xml to json converter!