1
Vote

Can't get value of large number

description

I've got a json document that contains a big integer number that doesn't fit in a uint64.

I know the value doesn't fit in any built in C++ types. I was hoping to use something like boost::multiprecision::cpp_int which can be initialized with a number from a string.

But, web::json::value::as_string() throws if called on a value that isn't a string.

Is there a way to read a large integer? And if not, could it be a possible future fix/feature.

Thanks,
-Scott

comments