Skip to content

jsonCreateObjectFromDataSet (JSON Creation & Manipulation)

Compatible with:
  • Purpose
  • This command is used to create a JSON document from the contents of a dataset.  
  • If the dataset mentioned in the variable is not created in the same run, then run fails with error "For one or more Instructions within the Test Run that use the "ddCreateDataset" command, the Dataset name provided in the 'Target' field does NOT exist in the scope of the <runname>"

    In Worksoft SaaS data set is a temporary storage area that consists of columns & rows. Column names make up "Key" while row values make up "Value" in the JSON document

  • Syntax
  • jsonCreateObjectFromDataSet(dataSetName,VariableName)
  • Target
  • dataSetName/VariableName
  • Value
  • VariableName
  • Return Value
  • JSON Object.

Example(s):

Click here to see the example

 

Feedback and Knowledge Base