I’ve used a custom stringify formatter to pass a full JSON output from the client side to server side, to then store in a single text field in the DB, which is great.
Ideally I’d now like to do more with this, but can’t seem to convert any parts of the now stringified JSON back into an array/object for use in other server connect actions.
On the server action end, you might have to take help of a custom formatter which would convert the JSON String to JSON.
I am not aware of any built-in option to convert JSON string to JSON.
Or, you can make use of your SQL server to return the string JSON data in columns using a custom query or SP. I have read about this, but have never done it myself.
You could but it seems a lot of effort for a simple formatter thst doesn’t take additional arguments or has a complex config. You just need to chain .parseJSON() to your stringified value.
hi @JonL, i tried read some articles on forum about implementing this functions, but all articles are very confused! where a put this code and how can we used?
The parseJSON formatter is available in App Connect on the client. The formatter is however not added to the Wappler UI due to its complexity. Wappler requires metadata of the formatter to know which type of input it requires and what the output is. The problem with the parseJSON formatter is that the input is known but the output can be anything.