Question

Code Block - use entier output in next code block as input

  • 18 April 2024
  • 2 replies
  • 14 views

Hello.  I have a Python Code Block that is running a large call with API.  I had to break up the Code blocks due to the 30 runtime limitation.

I need to feed the entire output as a single JSON into the next code block but it doesn’t provide the entire JSON as an input and is wanting each key/value as an input.

Is there any way around this?  


2 replies

I actually found a solution.

 

json.dumps() to convert the entire json output as a string.

json.loads() to convert it back in the 2nd code block after input.

Userlevel 6
Badge +8

I just clicked in here to say “Covert it to a string,” but it looks like you already figured that out :)

Reply