Skip to content

Type Conversion #779

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?

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

    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