Get Data Pairs For JSON Object Properties
- 15 May 2023
- 1 Minute to read
- Print
- DarkLight
Get Data Pairs For JSON Object Properties
- Updated on 15 May 2023
- 1 Minute to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
Step Details | |
Introduced in Version | 4.0.0 |
Last Modified in Version | 8.12.0 |
Location | Data > 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
Property | Description | Data Type |
---|---|---|
Indented Ouput | Disabling 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 Text | The JSON string to get data pair from | String |
Outputs
Property | Description | Data Type |
---|---|---|
Output | Data Pairs of JSON text | List of DataPair |
Example Inputs and Outputs
Input | Output |
---|---|
{"name":"John", "age":30, "car":null} | {name:"John", age:30, car:""} |
Null | EXCEPTION MESSAGE |
Empty String | EXCEPTION 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
Description | Version | Date | Developer Task |
---|---|---|---|
Added a new setting to the step, "Indented Ouput". | 8.12 | Pending Release | [DT-036215] |
Was this article helpful?