Skip to content

Adding objects or arrays with blank value #4

Description

@patrickp

When the feature to be able to add a actual json object/array when doing a set.object or set.array was added the old behavior broke.

CALL WOBJ(OBJ,"SET.OBJECT","newobject","","",RERR) ; * This used to add a blank object, it now errors.
CALL WOBJ(OBJ,"SET.OBJECT","newobject","{}","",RERR); * this is what is needed now.

same with set.array
CALL WOBJ(OBJ,"SET.ARRAY","Array","","",RERR); * while this looks to work you cannot add a object to it
CALL WOBJ(OBJ,"SET.ARRAY,"Array","[]","",RERR); * this seems to work.

Propose that for either function if no value is sent to default to {} for object and [] for aray.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions