Skip to content

Type Conversion #779

@ccge

Description

@ccge

Is there a way to convert a string value to a number value or vice versa?

For example:

{
    "number": "9"
}

I figured this word work, but it doesn't:
j.at( "number" ).get<int>();

Do I just have to grab it as a string and convert myself, or is there a better way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    solution: proposed fixa fix for the issue has been proposed and waits for confirmation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions