mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-18 04:52:22 +02:00
Replace single quotes by double quotes
This commit is contained in:
@ -82,7 +82,7 @@ public:
|
||||
{
|
||||
case JSON_STRING:
|
||||
if (value.string)
|
||||
append(buffer, bufferSize, "'%s'", value.string);
|
||||
append(buffer, bufferSize, "\"%s\"", value.string);
|
||||
else
|
||||
append(buffer, bufferSize, "null");
|
||||
break;
|
||||
|
@ -27,7 +27,7 @@ namespace JsonGeneratorTests
|
||||
{
|
||||
arr.add("hello");
|
||||
|
||||
AssertJsonIs("['hello']");
|
||||
AssertJsonIs("[\"hello\"]");
|
||||
}
|
||||
|
||||
TEST_METHOD(AddTwoStrings)
|
||||
@ -35,7 +35,7 @@ namespace JsonGeneratorTests
|
||||
arr.add("hello");
|
||||
arr.add("world");
|
||||
|
||||
AssertJsonIs("['hello','world']");
|
||||
AssertJsonIs("[\"hello\",\"world\"]");
|
||||
}
|
||||
|
||||
TEST_METHOD(AddOneStringOverCapacity)
|
||||
@ -44,7 +44,7 @@ namespace JsonGeneratorTests
|
||||
arr.add("world");
|
||||
arr.add("lost");
|
||||
|
||||
AssertJsonIs("['hello','world']");
|
||||
AssertJsonIs("[\"hello\",\"world\"]");
|
||||
}
|
||||
|
||||
TEST_METHOD(AddOneNumber)
|
||||
|
Reference in New Issue
Block a user