skip to main content
Corticon Studio: Quick Reference Guide : Ruletests : Ruletest window : Exporting a testsheet to a JSON document
 

Try Corticon Now
Exporting a testsheet to a JSON document
You can export a testsheet into well-formed JSON documents. Exporting Testsheets into JSON documents is quite useful:
*As a template for structuring much larger data sets for subsequent JSON Import (as described above)
*As a JSON payload to test a deployed Decision Service on the Server
Note: You can chose to exclude transients when you export Testsheets to JSON using the Exclude Transients option. For example, select Ruletest > Testsheets > Data > Input > Exclude Transients to set your preference to exclude transients. Toggle the option off to include transients in the exported document.

Input

To generate the Input column of a testsheet to JSON, choose the menu command Testsheet > Data > Input > Export Request JSON. The output from a simple Cargo test is as shown:

Output

To generate the Output panel of a testsheet to well-formed JSON, choose the menu command Testsheet > Data > Output > Export Response JSON.

Expected

To generate the Expected panel of a testsheet to well-formed JSON, choose the menu command Testsheet > Data > Expected > Export Response JSON.