cleaned up xml-to-json plugin