Hi
Can this be considered to add?
Regards
Hi!
Would you like to elaborate on the use case for this feature? What challenges would it solve?
Hi
Generally that I can store an object in proper json format and still get proper json out from the API. I used return JSON.stringify(myClass) and stored that in a string, this adds escaped backslashes (\
) before the quotation marks.
When getting the data from the API the string property is a string and not a json. If it was a json the entire response would be json with a json object where the string is currently placed.
My use case is that I delete items from the system and want to store a log that we retain for 30 days. I.e I want to be able to properly purge the rows from the database, but for support and follow up cases I need to have som track on rows that was deleted, added or manipulated in services and other end points. Alternatively I can store this in a file. Just found it handy to have json as a property type as it results in less parsing and to avoid to use the funtction JSON.parse() as this is not available in all end points.
Generally I see a potential to significantly simplify my data model for some similar use cases. Alternatively I can store as a file, but again it will lead to parsing instead of getting a complete json.
Just asking, but been seeing some use cases here and there for this.
Thanks for the quick reply
Thank you for providing info about your use case! We will consider the feature request and we have something upcoming for Developalooza that might help with this case.
Hi @Olav
I have a similar case.
What was the potentially useful feature from Developalooza?
My use case is that I want to log the use of my app in an external system. I have a temporary object that’s populated throughout a registration flow. For each new page, I want to log the current attributes of this temporary object to the external system, which expects the data in JSON format.
What’s the best way for me to take the temp object, convert it to JSON, and send it to an external endpoint?
Hi!
I was thinking that both Flows and the AI assistant might make this a lot easier, but you will have to wait a little longer for those.
For now, I would trigger an action with a Web Request every time the user opens a new page. This Web Request should use POST and have Body Type “Raw”. Then you can use the function editor to fill in the JSON in the Body Content with the relevant attributes from the temporary object and send it to the external system. Hope that helps!