-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Get array of items without using vector #1890
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
Description
Activity
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
I have an array of objects. I want to parse it into an array directly.
Example I have an array of boxes in Json
"Boxes":[
{
"name" :" box1",
"area" : "45"
},
{
"name": "box2"
"area": "50"
}
]
I want to directly parse it into an array of objects say in Boxes* boxes
Is it possible to do something like
Json J
Boxes* boxes = j.at("Boxes").get_ptr<Boxes*>();
I am on Win 10, Visual Studio 2019
Version 3.7.3