|
@@ -103,15 +103,15 @@ int parse_val(JsonParser* this, int index, char* json){
|
|
|
break;
|
|
|
//Boolean
|
|
|
case 't':
|
|
|
- compteur = 4;
|
|
|
+ compteur = 3;
|
|
|
this->val[index] = json;
|
|
|
- this->val_length[index] = compteur;
|
|
|
+ this->val_length[index] = compteur + 1;
|
|
|
this->type[index] = JSON_BOOLEAN;
|
|
|
break;
|
|
|
case 'f':
|
|
|
- compteur = 5;
|
|
|
+ compteur = 4;
|
|
|
this->val[index] = json;
|
|
|
- this->val_length[index] = compteur;
|
|
|
+ this->val_length[index] = compteur + 1;
|
|
|
this->type[index] = JSON_BOOLEAN;
|
|
|
break;
|
|
|
//Nombre
|