Skip to content

Cannot even do a simple swap #17

Open
@chandlersonne

Description

@chandlersonne

JSONVar apList;
JSONVar apObj1;
JSONVar apObj2;
apObj1["name"]=1;
apObj2["name"]=2;
apList[0]=apObj1;
apList[1]=apObj2;
//swap the 2 objects
JSONVar tmp1;
tmp1 = apList[2];
JSONVar tmp2;
tmp2 = apList[1];
apList[2] = tmp2;
apList[1] = tmp1;
The last line causes exception somehow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions