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