#define ARDUINOJSON_USE_LONG_LONG 1 #include #include TEST_CASE("ARDUINOJSON_USE_LONG_LONG == 1") { JsonDocument doc; JsonObject root = doc.to(); root["A"] = 123456789123456789; root["B"] = 987654321987654321; std::string json; serializeJson(doc, json); REQUIRE(json == "{\"A\":123456789123456789,\"B\":987654321987654321}"); }