Help with displaying API data

I have set up an API plugin to post data as a JSON and the receive a JSON string back.

My page is a calculator so I have a workflow that takes data from the inputs and sends them through the API.

The next step in the workflow will be to display the JSON data I receive. I successfully set it up so that I set the state of an item based on the result of the API call, and then have that item display that state.

I’d imagine doing this step with unique states for the multiple outputs I want to display would not be efficient. What is a better way to do this?

I would think setting one element’s state to the entire JSON output, and then having the individual elements reference the relevant data would be a solution, but I’m having trouble getting an element’s state set to the API calls result’s entire string.

I’m happy to provide more detail and screenshots if this doesn’t make sense.

Thanks!

1 Like