ipkn / crow

Crow is very fast and easy to use C++ micro web framework (inspired by Python Flask)
BSD 3-Clause "New" or "Revised" License
7.47k stars 889 forks source link

Fix handling of big integers #258

Closed erikaldsund closed 6 years ago

erikaldsund commented 6 years ago

The JSON library does not support big integers because it internally represents all integers as double values. I've fixed this by introducing a num_type enum and storing the value using a union in json::wvalue. Does it look OK to you? Could it be improved somehow?

erikaldsund commented 6 years ago

This should also fix bug #254 if I am not mistaken.

ipkn commented 6 years ago

This is a pretty good addition to the crow. Thank you for the PR.