File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
ArduinoJson: change log
2
2
=======================
3
3
4
+ HEAD
5
+ ----
6
+
7
+ * Fixed ` JsonObject ` not inserting keys of type ` String ` (issue #782 )
8
+
4
9
v6.2.0-beta
5
10
-----------
6
11
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class ArduinoString {
15
15
16
16
template <typename Buffer>
17
17
const char * save (Buffer* buffer) const {
18
- if (!_str-> c_str ()) return NULL ; // <- Arduino string can return NULL
18
+ if (is_null ()) return NULL ;
19
19
size_t n = _str->length () + 1 ;
20
20
void * dup = buffer->alloc (n);
21
21
if (dup != NULL ) memcpy (dup, _str->c_str (), n);
@@ -24,7 +24,7 @@ class ArduinoString {
24
24
25
25
bool is_null () const {
26
26
// Arduino's String::c_str() can return NULL
27
- return _str->c_str ();
27
+ return ! _str->c_str ();
28
28
}
29
29
30
30
bool equals (const char * expected) const {
You can’t perform that action at this time.
0 commit comments