-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Explicitly getting string without .dump() #401
Labels
Comments
You can get a string like this: std::string my_string = aArg["path"];
if (my_string.find("firefox.exe") != std::string::npos)
... Note that the JSON value |
Ah thank you! That is so easy! I was trying all kinds of weird stuff haha! I was trying
|
Good that this helped. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there all!
I had a need to get a string explicitly from a json object. I saw this in the readme:
However this caused me a hidden issue a couple times without realizing. It would surround it with double quotes. This is expected and great behavior, but is there a way to get explicit string without
.dump()
?These are my uses cases:
This fails compiling and underlines the
!=
in visual studio like this:This compiles, but it makes visual studio get a red underline (it just looks scary haha):
The text was updated successfully, but these errors were encountered: