Can I input it as a parameter to a function in an execute command block?
Such as: python3 main.py -a json_object
How should I read it? Do I have to decrypt it?
Or the only way to pass all the json as an input parameter to a function, is to pass it a .json file saved on disk? And so using first the “move binary data” → “write binary file”
Like this:
The challenge that you are running into is that the node wants to pass an object while you require a string. If you use values rather than raw values, this should generate a concatenated string of values that can be passed to your EXECUTE node. It may still need to be modified but at least it will send you in the right direction.
Hi there, necro-thread but this helped me figure out a problem.
I kept getting [Object: at the beginning of a JSON string if I just used the {{ $json }} expression. This made the string invalid JSON, and I was trying to insert it as a row on a SQL table with ISJSON=1 as a constraint.
I tried all sorts of REPLACE stuff and such, but no luck.
I found this post and changed the syntax to {{ JSON.stringify($json) }} and that resolved my issue. So not quite the same problem, but same problem domain.
If anyone else has this issue and comes across this post, this is how to fix it.