MCPcopy Index your code
hub / github.com/FlowiseAI/Flowise / getJSONValue

Function getJSONValue

packages/ui/src/views/canvas/NodeInputHandler.jsx:313–322  ·  view source on GitHub ↗
(templateValue)

Source from the content-addressed store, hash-verified

311 }
312
313 const getJSONValue = (templateValue) => {
314 if (!templateValue) return ''
315 const obj = {}
316 const inputVariables = getInputVariables(templateValue)
317 for (const inputVariable of inputVariables) {
318 obj[inputVariable] = ''
319 }
320 if (Object.keys(obj).length) return JSON.stringify(obj)
321 return ''
322 }
323
324 const getDataGridColDef = (columns, inputParam) => {
325 const colDef = []

Callers 2

onEditJSONClickedFunction · 0.85
NodeInputHandlerFunction · 0.85

Calls 2

getInputVariablesFunction · 0.90
stringifyMethod · 0.80

Tested by

no test coverage detected