Does JSON require all quoting?

"success":true , same as "success":"true"

+4
source share
2 answers

JSON requires that keys and string values ​​be correctly separated by quotation marks. " Other values ​​must not contain quotation marks. This means that "success":true and "success":"true" do not match. The first is a logical value and the second is a string value.

For more information see http://json.org .

+8
source

no. The first is logical (true), the second is the string "true"

+1
source

All Articles