From 9bc2b3f4cf1e615dc80814f9f12fdeeb895005b6 Mon Sep 17 00:00:00 2001 From: Simon Smith Date: Thu, 19 Jun 2025 16:23:29 +0100 Subject: [PATCH] forgot to fix meshctrl for json output from getDeviceDetails Signed-off-by: Simon Smith --- meshctrl.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meshctrl.js b/meshctrl.js index e2d2e168..b2a8e804 100644 --- a/meshctrl.js +++ b/meshctrl.js @@ -2592,7 +2592,11 @@ function serverConnect() { break; } case 'getDeviceDetails': { - console.log(data.data); + if (args.json) { + console.log(JSON.stringify(data.data)); + } else { + console.log(data.data); + } process.exit(); } case 'report': {