I have this code:
wcout << jvalue.serialize() << endl;
which prints out the whole body of json data:
{
"data": {
"timestamp": [
{
"_id": "5ad93fc48084e1089cd9667b",
"staff_id": 172,
"staff_name": "Michael Edano",
"time_in": "2018-04-20T01:17:56.787Z",
"time_out": null,
"status": ['Leave','Vacation','Absent'],
"createdAt": "2018-04-20T01:17:56.790Z",
"updatedAt": "2018-04-20T01:17:56.790Z",
"__v": 0
}
],
"success": true
}
}
Can someone give me an example on how to get let say the
_id
field
and
single data of status[]
field (which is array)
from data return by web::json::value::serialize()
?
Thank you.