mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 08:42:39 +01: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