jorgen / json_struct

json_struct is a single header only C++ library for parsing JSON directly to C++ structs and vice versa
Other
422 stars 57 forks source link

float deserial error #9

Closed Iohannes-long closed 3 years ago

Iohannes-long commented 3 years ago

struct Json1 { float num1; double num2;

JS_OBJECT(JS_MEMBER(num1), JS_MEMBER(num2)); }; const char json_data1[] = R"json( { "num1": 32587.403333333333333333, "num2": 32587.403333333333333333 } )json";

jorgen commented 3 years ago

Oh! Thats embarrassing! I will fix this tonight. Thank you for your bug report.

jorgen commented 3 years ago

Should be fixed now. Thank your for taking the time to file a bug report!