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.