Update xmlToJson to make json correctly