From 04c33afe3cddf4c2bbd1a77bb97363266bc4c7a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Blanchon?= Date: Sat, 25 Jul 2015 16:39:22 +0200 Subject: [PATCH] Updated Avoiding pitfalls (markdown) --- Avoiding pitfalls.md => Avoiding-pitfalls.md | 2 ++ 1 file changed, 2 insertions(+) rename Avoiding pitfalls.md => Avoiding-pitfalls.md (98%) diff --git a/Avoiding pitfalls.md b/Avoiding-pitfalls.md similarity index 98% rename from Avoiding pitfalls.md rename to Avoiding-pitfalls.md index 894b910..c777899 100644 --- a/Avoiding pitfalls.md +++ b/Avoiding-pitfalls.md @@ -110,6 +110,8 @@ For instance, one could allocate all strings out of the loop: The same principle applies to key and values of `JsonObject`. +Note: ArduinoJson 5.0 (currently in beta), make copies of `String` values but not `char*`. + #### 7. Make sure the string isn't read-only If you read carefully the previous section, you may have come to the conclusion that the JSON parser modifies the JSON string.