How to return JSON from a Web Screen.

How to return JSON from a Web Screen.

We have a legacy html form that a customer will use to provide contact information.  We are trying to use a jquery post of the data to an agile oml that will insert the data to a table and and send the customer to a thank you screen in the legacy html code. We are sending the data using JSON JQuery post and the call is expecting JSON formatted data back.

How do you respond with JSON formatted data from a Web Screen?
Hi Scott,

That's a good question. The correct way to do it, if we understood your question correctly, would be to create the content you want to return in a Preparation action, and then finish the Preparation action with a Download node, returning the content you'd like to return.

Daniel Lourenço has done a great job explaining something similar to it in this post here.

We hope this helps.


Paulo Tavares