-
-
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
Identifying JsonVariant type of a deserialized document #2086
Labels
Comments
|
Great, and getting it as array would be It'd be also great to add this to docs or examples ;) |
The documentation already says that |
It's obviously clear to people already familiar with the library's design.
But to my experience, I couldn't find the solution in docs nor examples.
But I've just found it under API Reference looking for `is<>()`, well, I
wasn't aware of it.
Hope it helps.
Hamza
…On Mon, May 13, 2024, 10:33 Benoît Blanchon ***@***.***> wrote:
The documentation already says that kv.value() is a JsonVariant.
What else do you need, and on which page?
—
Reply to this email directly, view it on GitHub
<#2086 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AH3O7JZIYIL6H2VAFQKR543ZCBUFNAVCNFSM6AAAAABHJH6E2WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBWHA2TIMJUGY>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi
I'm building an entity for serializing/deserializing from/to multiple formats for unknown schemes, one of them is JSON.
Over deserialization, I want to detect whether a
JsonVariant
holds an array by calling:However, I can't perform this operation due to
getData()
method being unaccessable.How can I perform such target using ArduinoJson (I'm on v6, but assume the latest: v7).
With Thanks,
Hamza Hajeir
The text was updated successfully, but these errors were encountered: