সম্পাদনা
#include <iostream> #include <nlohmann/json.hpp> using json = nlohmann::json; int main() { std::string text = R"({ "নাম": "মোঃ আরিফ", "দেশ": "বাংলাদেশ" })"; json result = json::parse(text); std::cout << result.dump(2); return 0; } }
পূর্বরূপ