Skip to content

string literals possibly being parsed as another type due to the presence of only digits and full-stops #2852

Description

@nicholasdkunes

I believe the parser is parsing IP strings like "10.0.1.1" or version strings like "2021.1.0" as something other than a string, and it fails to convert when a string is requested.

See below:

j["SW_VERSION"].get<std::string>();

Where:

"SW_VERSION":"2021.1.0"

Results in:

Exception thrown at 0x00007FFB0F0E467C in dx12win10.exe: Microsoft C++ exception: nlohmann::detail::type_error at memory location 0x000000D4FEEFEBC8.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions