cancel
Showing results for 
Search instead for 
Did you mean: 

support JSON data type

chuck_irvine
Champ on-the-rise
Champ on-the-rise
It would be great if a JSON data type could be supported somehow at the GUI layer. Single valued variables are too limiting in the context of a large quantity of business data. For example, I'd like to be able to store the JSON data returned by a REST API call. Is this currently possible in any way? If not, how difficult would it be to add this functionality? Thanks

Chuck Irvine
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
a JSON variable type was added in recent releases of the engine.
Note sure what you mean with 'at the GUI layer'?

chuck_irvine
Champ on-the-rise
Champ on-the-rise
First, I was referring to the latest subscription version. Let me give an example, but I assume that there are more use cases.

Say that I've implemented a "REST call task" from the process modeler "Activities" drop down list. As a result of the task being called, a JSON object is returned to GUI layer. My question is: Can I take that JSON object and store it in a process variable and use individual JSON values (leaf fields) to populate form read-only values?

I see in the GUI for creating new process variables a data type called "group". Might a process variable of this datatype be applicable?

jbarrez
Star Contributor
Star Contributor
(Moving to enterprise forum)

The rest call result can indeed be used to store process variables in the process. I even think that's by default, and you do some processing on it.