{"action":"closed","issue":{"url":"https://api.github.com/repos/nodejs/help/issues/1637","repository_url":"https://api.github.com/repos/nodejs/help","labels_url":"https://api.github.com/repos/nodejs/help/issues/1637/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/help/issues/1637/comments","events_url":"https://api.github.com/repos/nodejs/help/issues/1637/events","html_url":"https://github.com/nodejs/help/issues/1637","id":384656520,"node_id":"MDU6SXNzdWUzODQ2NTY1MjA=","number":1637,"title":"JSON.parse not correct when decoding Special json string","user":{"login":"qintang","id":15024887,"node_id":"MDQ6VXNlcjE1MDI0ODg3","avatar_url":"https://avatars3.githubusercontent.com/u/15024887?v=4","gravatar_id":"","url":"https://api.github.com/users/qintang","html_url":"https://github.com/qintang","followers_url":"https://api.github.com/users/qintang/followers","following_url":"https://api.github.com/users/qintang/following{/other_user}","gists_url":"https://api.github.com/users/qintang/gists{/gist_id}","starred_url":"https://api.github.com/users/qintang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qintang/subscriptions","organizations_url":"https://api.github.com/users/qintang/orgs","repos_url":"https://api.github.com/users/qintang/repos","events_url":"https://api.github.com/users/qintang/events{/privacy}","received_events_url":"https://api.github.com/users/qintang/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-11-27T07:13:04Z","updated_at":"2018-11-27T07:42:08Z","closed_at":"2018-11-27T07:42:08Z","author_association":"NONE","body":"<!--\r\nThank you for reporting a possible bug in Node.js.\r\n\r\nPlease fill in as much of the template below as you can.\r\n\r\nVersion: output of `node -v`\r\nPlatform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows)\r\nSubsystem: if known, please specify the affected core module name\r\n\r\nIf possible, please provide code that demonstrates the problem, keeping it as\r\nsimple and free of external dependencies as you can.\r\n-->\r\n\r\n* **Version**:v8.11.3\r\n* **Platform**:windows\r\n* **Subsystem**: windows10\r\n\r\n<!-- Please provide more details below this comment. -->\r\n\r\nSteps to reproduce:\r\n\r\ndecoding json string:\r\n\r\n```javascript\r\nJSON.parse('{\"id\":15793596764604416,\"tenantId\":\"qiushi6\",\"createTime\":1543269513000,\"updateTime\":null,\"nodes\":[{\"id\":15793596808644609,\"name\":\"开始\",\"workflowId\":15793596764604416,\"type\":\"tflowstart\",\"x\":100,\"y\":200,\"remark\":null,\"reserved\":false},{\"id\":15793596808644608,\"name\":\"时间\",\"workflowId\":15793596764604416,\"type\":\"tflowtime\",\"x\":200,\"y\":200,\"remark\":null,\"reserved\":false}],\"connects\":[{\"id\":15793596808644610,\"workflowId\":15793596764604416,\"source\":15793596808644609,\"target\":15793596808644608,\"position\":0,\"name\":null,\"reserved\":true,\"sourceNode\":null,\"targetNode\":null}],\"reserved\":false}')\r\n```\r\n\r\nActual results:\r\n\r\n```javascript\r\n{\r\n  \"id\": 15793596764604416,\r\n  \"tenantId\": \"qiushi6\",\r\n  \"createTime\": 1543269513000,\r\n  \"updateTime\": null,\r\n  \"nodes\": [\r\n    {\r\n      \"id\": 15793596808644608,\r\n      \"name\": \"开始\",\r\n      \"workflowId\": 15793596764604416,\r\n      \"type\": \"tflowstart\",\r\n      \"x\": 100,\r\n      \"y\": 200,\r\n      \"remark\": null,\r\n      \"reserved\": false\r\n    },\r\n    {\r\n      \"id\": 15793596808644608,\r\n      \"name\": \"时间\",\r\n      \"workflowId\": 15793596764604416,\r\n      \"type\": \"tflowtime\",\r\n      \"x\": 200,\r\n      \"y\": 200,\r\n      \"remark\": null,\r\n      \"reserved\": false\r\n    }\r\n  ],\r\n  \"connects\": [\r\n    {\r\n      \"id\": 15793596808644610,\r\n      \"workflowId\": 15793596764604416,\r\n      \"source\": 15793596808644608,\r\n      \"target\": 15793596808644608,\r\n      \"position\": 0,\r\n      \"name\": null,\r\n      \"reserved\": true,\r\n      \"sourceNode\": null,\r\n      \"targetNode\": null\r\n    }\r\n  ],\r\n  \"reserved\": false\r\n}\r\n```\r\n\r\n\r\nExpected results:\r\n\r\n```javascript\r\n{\r\n  \"id\": 15793596764604416,\r\n  \"tenantId\": \"qiushi6\",\r\n  \"createTime\": 1543269513000,\r\n  \"updateTime\": null,\r\n  \"nodes\": [\r\n    {\r\n      \"id\": 15793596808644608,\r\n      \"name\": \"开始\",\r\n      \"workflowId\": 15793596764604416,\r\n      \"type\": \"tflowstart\",\r\n      \"x\": 100,\r\n      \"y\": 200,\r\n      \"remark\": null,\r\n      \"reserved\": false\r\n    },\r\n    {\r\n      \"id\": 15793596808644609,\r\n      \"name\": \"时间\",\r\n      \"workflowId\": 15793596764604416,\r\n      \"type\": \"tflowtime\",\r\n      \"x\": 200,\r\n      \"y\": 200,\r\n      \"remark\": null,\r\n      \"reserved\": false\r\n    }\r\n  ],\r\n  \"connects\": [\r\n    {\r\n      \"id\": 15793596808644610,\r\n      \"workflowId\": 15793596764604416,\r\n      \"source\": 15793596808644608,\r\n      \"target\": 15793596808644609,\r\n      \"position\": 0,\r\n      \"name\": null,\r\n      \"reserved\": true,\r\n      \"sourceNode\": null,\r\n      \"targetNode\": null\r\n    }\r\n  ],\r\n  \"reserved\": false\r\n}\r\n```\r\nplease kindly note  `nodes.id`"}}
{"actor":{"display_login":"qintang"}}