Expand my Community achievements bar.

Come join us for our Coffee Break next week on top takeaways from Adobe Summit!

Workfront Fusion - Add the functionality of the Transform to JSON module as an inline function

Avatar

Employee

7/28/23

I’m running into cases a lot recently where I need to do a ton of internal text manipulations --- extractions from arrays, text transforms/substrings, etc., but then have to completely re-extract that text out of my variable functions/formulas to pass it through the Transform to JSON module, and then re-cast it to a different variable/module after that. As far as I can tell, the Transform to JSON module looks and acts almost the same as a text function --- you’re passing a single parameter to the function that lives behind the module and consuming its output. 
 
The advantage of having it as a function is that you can nest it within the same variable as other functions without having to break out of the variable module, transform it, and then re-introduce the transformed JSON in another variable or module.  It’s much more easily self-contained, all in one variable, and you can much more easily nest it as part of a set of string manipulation functions all at once.
1 Comment

Avatar

7/28/23

A simple JSON.stringify() and JSON.parse() (maybe as a toJson() and fromJson()?) would be incredibly helpful to simplify a bunch of cases.  Love the suggestion.