1π
β
In JSON, double quotes "
around values indicate strings. Non-strings are not delimited with "
s. Numbers have no delimiters, and the total
property getter, when invoked (by JSON.stringify
) returns a number, so the resulting JSON does not surround the total
value with quotes.
Source:stackexchange.com