Does JSON treat these all the same? Or are they a mix of Integers and booleans?
var data =
{
"zero" : 0,
"one" : 1,
"false" : 0,
"true" : 1,
"0" : false,
"1" : true
}
Does JSON treat these all the same? Or are they a mix of Integers and booleans?
var data =
{
"zero" : 0,
"one" : 1,
"false" : 0,
"true" : 1,
"0" : false,
"1" : true
}
JSON is a format for transferring data.
It has no notion of equality.
JSON parsers treat booleans and numbers as distinct types.