Get Data Pairs For JSON Object Properties
  • 15 May 2023
  • 1 Minute to read
  • Dark
    Light

Get Data Pairs For JSON Object Properties

  • Dark
    Light

Article Summary

Step Details

Introduced in Version4.0.0
Last Modified in Version8.12.0
LocationData > JSON

The Get Data Pairs For Json Object Properties step returns all of the JSON as a data pairs list. It accepts a JSON Text (String) input and returns a List.



Properties

Inputs

PropertyDescriptionData Type
Indented OuputDisabling this option outputs the JSON in a single line, eliminating any indentation. This format may be helpful in reducing the overall size of the Flow.
Boolean
Json TextThe JSON string to get data pair fromString

Outputs

PropertyDescriptionData Type
OutputData Pairs of JSON textList of DataPair

Example Inputs and Outputs

InputOutput
{"name":"John", "age":30, "car":null}
{name:"John", age:30, car:""}
Null EXCEPTION MESSAGE
Empty StringEXCEPTION MESSAGE


Common Errors

Value cannot be null

If the input value is not provided, an error will occur.

To correct this, ensure that the JSON Text field is mapped or entered with the correct value.

Exception Message:

Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Get Data Pairs For Json Object Properties 1[GetDataPairsForJsonObjectProperties] in flow [Example]: Exception invoking method GetDataPairsForJsonObjectProperties on class JsonSteps
 ---> DecisionsFramework.LoggedException: Exception invoking method GetDataPairsForJsonObjectProperties on class JsonSteps
 ---> System.ArgumentNullException: Value cannot be null. (Parameter 's'
 at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings
 at DecisionsFramework.Design.Flow.CoreSteps.Json.JsonSteps.GetDataPairsForJsonObjectProperties(String jsonText)
   --- End of inner exception stack trace --- at DecisionsFramework.Design.Flow.StepImplementations.InvokeMethodStep.Run(StepStartData data
 at DecisionsFramework.Design.Flow.FlowStep.RunStepInternal(String flowTrackingID, String stepTrackingID, KeyValuePairDataStructure[] stepRunDataValues, AbstractFlowTrackingData trackingData
 at DecisionsFramework.Design.Flow.FlowStep.Start(String flowTrackingID, String stepTrackingID, FlowStateData data, AbstractFlowTrackingData trackingData, RunningStepData currentStepData)
   --- End of inner exception stack trace ---

Feature Changes

DescriptionVersionDateDeveloper Task
Added a new setting to the step, "Indented Ouput".
8.12Pending Release
[DT-036215]

Was this article helpful?