Open skeletorkun opened 5 months ago
It looks like this is just the nature of how JSON.stringify
/ JSON.parse
work. Using non-zero floating point values such as {"driving":8.1,"stopover":8.2,"trip":8.3}
result in the expected output of:
{
"driving": 8.1,
"stopover": 8.2,
"trip": 8.3
}
The only other thing I can think of is storing the data as a string, like {"driving":"8.0","stopover":"8.0","trip":"8.0"}
.
before :
{"driving":8.0,"stopover":8.0,"trip":8.0}
after