Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding objects or arrays with blank value #4

Open
patrickp opened this issue Jun 7, 2018 · 0 comments
Open

Adding objects or arrays with blank value #4

patrickp opened this issue Jun 7, 2018 · 0 comments
Labels

Comments

@patrickp
Copy link
Owner

patrickp commented Jun 7, 2018

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.

@patrickp patrickp added the bug label Aug 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant