incorporated the convert mongodb to json and xml