NDDB icon indicating copy to clipboard operation
NDDB copied to clipboard

Null not correctly reprsented in JSON output

Open dfmorrison opened this issue 8 years ago • 0 comments

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 }​

dfmorrison avatar Jan 22 '18 15:01 dfmorrison