mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Add JSONata expr tester and improved feedback
This commit is contained in:
@@ -398,9 +398,15 @@
|
||||
"expressionEditor": {
|
||||
"functions": "Functions",
|
||||
"insert": "Insert",
|
||||
"title": "JSONata Expression editor"
|
||||
"title": "JSONata Expression editor",
|
||||
"data": "Example message",
|
||||
"result": "Result",
|
||||
"format": "format expression",
|
||||
"compatMode": "Compatibility mode enabled",
|
||||
"compatModeDesc": "<h3>JSONata compatibility mode</h3><p> The current expression appears to still reference <code>msg</code> so will be evaluated in compatibility mode. Please update the expression to not use <code>msg</code> as this mode will be removed in the future.</p><p> When JSONata support was first added to Node-RED, it required the expression to reference the <code>msg</code> object. For example <code>msg.payload</code> would be used to access the payload.</p><p> That is no longer necessary as the expression will be evaluated against the message directly. To access the payload, the expression should be just <code>payload</code>.</p>"
|
||||
},
|
||||
"jsonEditor": {
|
||||
"title": "JSON editor"
|
||||
"title": "JSON editor",
|
||||
"format": "format JSON"
|
||||
}
|
||||
}
|
||||
|
@@ -110,16 +110,11 @@
|
||||
"args": "object",
|
||||
"desc": "Splits an object containing key/value pairs into an array of objects, each of which has a single key/value pair from the input object. If the parameter is an array of objects, then the resultant array contains an object for every key/value pair in every object in the supplied array."
|
||||
},
|
||||
|
||||
"$context": {
|
||||
"args": "string",
|
||||
"desc": "Retrieves a node context property."
|
||||
},
|
||||
"$flow": {
|
||||
"$flowContext": {
|
||||
"args": "string",
|
||||
"desc": "Retrieves a flow context property."
|
||||
},
|
||||
"$global": {
|
||||
"$globalContext": {
|
||||
"args": "string",
|
||||
"desc": "Retrieves a global context property."
|
||||
}
|
||||
|
Reference in New Issue
Block a user