We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fef3bd commit 56c5267Copy full SHA for 56c5267
src/jsonlib/jsonlib.cpp
@@ -79,7 +79,7 @@ String jsonExtract(String json, String name){
79
if(next == '\"'){
80
//Serial.println(".. a string");
81
start = start + 1;
82
- stop = json.indexOf('"', start + 1);
+ stop = json.indexOf('"', start);
83
}
84
else if(next == '['){
85
//Serial.println(".. a list");
@@ -112,7 +112,7 @@ String jsonExtract(String json, String name){
112
else if(next == '.' || next == '-' || ('0' <= next && next <= '9')){
113
//Serial.println(".. a number");
114
int i = start;
115
- while((i++ < json.length() && json.charAt(i) == '.') || ('0' <= json.charAt(i) && json.charAt(i) <= '9')){
+ while(i++ < json.length() && (json.charAt(i) == '.' || ('0' <= json.charAt(i) && json.charAt(i) <= '9'))){
116
117
stop = i;
118
0 commit comments