Open bpcsguru opened 4 years ago
I am using xml2js to convert XML to JSON. When JSON have node of string data type but all numbers in it then JSON conversion will not put double quotes.
e.g.
I am using 0.4.15 version. Please let me know if it is known bug and if it was fixed !! Thanks in advance !!
I am using xml2js to convert XML to JSON. When JSON have node of string data type but all numbers in it then JSON conversion will not put double quotes.
e.g.
@bpcsguru Trying using ignoreAttrs
in the options object to see if it produces only strings.
I am using xml2js to convert XML to JSON. When JSON have node of string data type but all numbers in it then JSON conversion will not put double quotes.
e.g.1234 then JSON is created with {"productCode":1234} but I am really expecting values in format {"productCode":"1234"}.
I am using 0.4.15 version. Please let me know if it is known bug and if it was fixed !! Thanks in advance !!