Skip to content

Impossible to do an array of composite objects #691

Closed
@mati-araujo

Description

I need to create a JSon array like this for example:

json j;
j.push_back(" { { "objectId" : 0 } , {"transfer_data" : [ {"transfer_id" : 0 } , {"transfer_time" : 57 } ]  } } ");
j.push_back(" { { "objectId" : 1 } , {"transfer_data" : [ {"transfer_id" : 1 } , {"transfer_time" : 49 } ]  } } ");

But the push_back function only acept initializer list that contains only two elements.

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions