Skip to content

Serialized value not always can be parsed. #329

Description

@vitalybuka

I assume that if value was parsed without exception it should be serializable and parsables again.

    std::stringstream s;
    s << json::parse("22e2222");  // I'd expect exception here
    try {
      auto j2 = json::parse(s.str()); 
    } catch (const std::invalid_argument&) { 
      std::cerr << std::string{data, data + size} << " -> "
      << s.str() << "\n";
      assert(0);
    }

Activity

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

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions