Skip to content

Impossible to do an array of composite objects #691

Description

@mati-araujo

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions