mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
ensure JSON node handles single booleans and numbers
This commit is contained in:
@@ -82,7 +82,7 @@ module.exports = function(RED) {
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (typeof value === "object") {
|
||||
else if ((typeof value === "object") || (typeof value === "boolean") || (typeof value === "number")) {
|
||||
if (node.action === "" || node.action === "str") {
|
||||
if (!Buffer.isBuffer(value)) {
|
||||
try {
|
||||
|
Reference in New Issue
Block a user