Skip to content

Feature request: JsonString.as<T>() #1964

Open
@razvanphp

Description

@razvanphp

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:

for (JsonPair el : json.as<JsonObject>()) {
    Serial.println(atoi(el.key().c_str()));
    Serial.println(el.value().as<int>());
}

Cheers,
R

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions