Skip to content

Combine json objects into one? #1165

@Merethiel

Description

@Merethiel

The title might not correctly describe what I'm attempting but essentially I have one structure that I can convert to a json string but I want to append a list of objects also to be converted into json strings and send that all together as one packet.

Something like this.
`json Packet;

Packet["PacketType"] = config::packet::type::TYPE;

Packet["ArrayOfObjects"] = ArrayOfObjects;`

Or make two separate json objects and combine them.

Another question I have is, does an array of objects have to be set at initialisation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions