#include #include "src/sonic-swss-common/common/json.hpp" using namespace std; using json = nlohmann::json; int main() { json j; j["count"] = 5; json arr = json::array(); cout << "type : " << (unsigned int)arr.type() << " IsArr " << arr.is_array()<< endl; json::array_t a; json arr1(a); cout << "type1 : " << (unsigned int)arr1.type()<< " IsArr " << arr.is_array() << endl; return 0; }