Deserialize non-fixed JSON
I have an API returning non-fixed/non-static JSON where the keys have dynamic or variable keys. Because of this, I am not able to use the datatype from JSON generator since the key names are dynamic. How can I handle this?
0
Comments
-
We don't have any steps that specifically deal with non-fixed JSON, but we have a couple steps that you can use to get values from JSON. They are both found in the toolbox under Data / JSON, Get Value from JSON by Name and Get Data Pairs for JSON Object Properties. Get Value from JSON by Name will allow you to pass in the JSON string as well as the Name you would like to retrieve the Value for. Get Data Pairs for JSON Object Properties will return the JSON properties as a data pair list.
Documentation:
- Get Value from JSON by Name: https://documentation.decisions.com/step-library/docs/get-value-from-json-by-name
- Get Data Pairs for JSON Object Properties: https://documentation.decisions.com/step-library/docs/get-data-pairs-for-json-object-properties
0
Howdy, Stranger!