Reputation: 86095
"success":true
, is it same as "success":"true"
Upvotes: 4
Views: 362
Reputation: 47387
no. The first is a boolean (true) the second is a string "true"
Upvotes: 1
Reputation: 344585
JSON requires that keys and string values are properly delimited with "
quotes. Other values should not have quotes. This means that "success":true
and "success":"true"
are not the same — the first is a boolean value and the second is a string value.
For more information, see http://json.org.
Upvotes: 8