-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Feature request: JsonString.as<T>() #1964
Comments
Hi @razvanphp,
Best regard, |
I do not expect that, I was just suggesting that this convenience method would serve in some cases when the key is actually of different type than string, avoiding extra operations like |
So, you're asking for I must say that I'm not fond of this idea:
I'm sorry, but I'll need to see some very convincing code examples before adding something like that in the library. |
Well, I was using it just for int, as you can see above in my code snippet, because I was setting registers in arduino and the key in json is not valid as integer, it needs to be string. Indeed Obviously It's your call and feel free to discard my suggestion 🙂 |
Hey, thank you for your great work!
It would be a lot easier (and cleaner) if this functionality would be implemented 🙂
Currently, only the
.value()
has it as it is implemented in JsonVariant.My code snippet:
Cheers,
R
The text was updated successfully, but these errors were encountered: