-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
json objects in list #1552
Copy link
Copy link
Closed
Labels
kind: questionsolution: proposed fixa fix for the issue has been proposed and waits for confirmationa fix for the issue has been proposed and waits for confirmation
Metadata
Metadata
Assignees
Labels
kind: questionsolution: proposed fixa fix for the issue has been proposed and waits for confirmationa fix for the issue has been proposed and waits for confirmation
Hi,
I would like to create a list from json objects.
json createJson1(){
json j;
j["type"]="text";
j["value"]="x";
return j;
}
Something like this:
json j = json::array( createJson1(), createJson2() );