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

Null not correctly reprsented in JSON output #7

Open
dfmorrison opened this issue Jan 22, 2018 · 0 comments
Open

Null not correctly reprsented in JSON output #7

dfmorrison opened this issue Jan 22, 2018 · 0 comments
Labels
Milestone

Comments

@dfmorrison
Copy link

If, in nodeGame, I do

node.game.memory.add({player: node.player.id, stage: node.player.stage, data: { "foo": null }});
node.game.memory.save("data.json");

I get

​{
"player": "681934395222262",
"stage": {
"stage": 2,
"step": 1,
"round": 1
},
"data": {
"foo": "!?_null"
},
"timestamp": 1516569132070
}​

where instead I would have expected something like

​{
"player": "681934395222262",
"stage": {
"stage": 2,
"step": 1,
"round": 1
},
"data": {
"foo": null
},
"timestamp": 1516569132070
}​

@shakty shakty added this to the 5 milestone Feb 26, 2018
@shakty shakty added the bug label Feb 26, 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

2 participants