-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON parse bug #28
Comments
I will take a look at this issue within the next days. Thank you for reporting and investigating! |
Also fixed parsing of curly brackets with the referenced commit. |
Thanks for the fix, but I haven't tested curly brackets (until now) and unfortunately if folder name contains just one curly bracket (either one) parsing doesn't work OK. Solution is to prefix inJson++; and inJson--; under case '{': and case '}': in function QDropboxJson::getArray with if (!inString) |
Thanks for testing! Unfortunately I did not merge all changes into the master branch. This is why this still fails. I will add those changes sometime today. |
Run into this problem today, this is not yet fixed (master branch). |
I've just discovered a bug in QDropboxJson::parseString function (qdropboxjson.cpp). The issue is that if json string contains [ character that is quoted, parser gets confused and sets isArray=true , but the value isn't really an array because it's string value under quotes.
The fix would be that under switch(strJson.at(i).toLatin1()) and case '[': the line isArray=true should be prefixed with if (!openQuotes) , so that isArray is not set if we're parsing quoted text.
I've not tested this extensively, but for my case (dropbox folder with [ in it's name) it works OK.
Thanks
The text was updated successfully, but these errors were encountered: