Version: v7.2.0
Platform: Darwin MacBook-234.local 16.0.0 Darwin Kernel Version 16.0.0: Mon Aug 29 17:56:20 PDT 2016; root:xnu-3789.1.32~3/RELEASE_X86_64 x86_64
Subsystem: v8_inspector
Steps:
node --inspect
http://localhost:9229/json/version
Actual response:
The HTTP /json/version returns the version object wrapped in array
[ {
"Browser": "node.js/v7.2.0",
"Protocol-Version": "1.1"
} ]
Expected response:
The HTTP /json/version should return object in alignment with Chrome and other browsers.
{
"Browser": "node.js/v7.2.0",
"Protocol-Version": "1.1"
}
Most helpful comment
https://github.com/nodejs/node/pull/9762