Skip to content

Functional visit #1480

Description

@p-groarke

Currently the user needs to deserialize values manually. For example :

if (j.is_string()) {
    std::string s = j.get<std::string>();
} else if //etc

Feature : Add an api that deserializes the value for the user, and calls a provided function with it:

j.get([](auto&& my_deserialized_val){
    // Do something magical
});

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    state: help neededthe issue needs help to proceedstate: please discussplease discuss the issue or vote for your favorite option

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions