json初学者的任务,希望各位给出例子代码
#include "json.hpp"
#include <iostream>
using namespace std;
using namespace nlohmann;
using Json = nlohmann::json;
int main() {
json j1 =[{
id:
1
name:
zhangsan
}
{
id:
3
name:
lisi
}];
json j2 = {"name":"dong"};
json j3 = {3};
return 0;
}
从网上搜的没有看懂
希望大家可以帮助一下啊