#include <string>
#include <jsoncpp/json/json.h>
#include <iostream>
#include <fstream>
using namespace std;
int main(int argc, char *argv[])
{
string strValue = "1.json";
ifstream ifs(strValue);
Json::Reader reader;
Json::Value value;
if (reader.parse(ifs, value))
{
// cout<<value.asString()<<endl;
const Json::Value arrayObj = value["value"];
int c=1;
for (unsigned int i = 0; i < arrayObj.size(); i++)
{
string out = arrayObj[i]["label"].asString();
cout <<"{"<<"message:"<<"'" <<out<<"'"<<"}, "<< endl;
}
}
return 0;
}