Skip to content

How to create additional keys and arrays #128

Description

@SimplySeth

Okay so I have a structure like so ...
{"Controllers": [{"Controller": { "Key":"Value"...}}]
I would like to add a new key named "Ports" for an array so
{"Controllers": [{"Controller": { "Key":"Value"...}, "Ports":[]}]

I tried
jblob.S("Controllers").Index(i).S("Controller").Array("Ports")

The query works for jblob.S("Controllers").Index(i).S("Controller") BTW

which gives me ...

Cannot initialize one variable with 2 values

What the proper way to do it?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions