XML to JSON converter based on xml2json