You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support for integers not from the range [-(2**53)+1, (2**53)-1] in parser #291
TEST(WTF, BigInteger) {
nlohmann::json val = -3383556239975101330LL;
val = nlohmann::json::parse(val.dump());
EXPECT_EQ(-3383556239975101330, val.get<int64_t>());
}
And this is the internal inconsistency.
As far as I know, RFC does not require JSON integers to be in any range.
I think that internal consistency is more important than possible non-interoperability with third-party JSON parsers.
Activity
antonovvk commentedon Aug 11, 2016
Sorry, I was using v1.1.0 and haven't noticed that this is fixed in newer versions.
Thank you for the great lib!
nlohmann commentedon Aug 11, 2016
No problem - when I saw the title, I though "Man, didn't we already fix this?" ;-)