Convert String to JSON Object

0
Hello All, we have a data in rich text editor, which on click of a button have to be converted into a JSON object and send as an attribute in an API. is this possible, can  anyone help.   Warm Regards Vineeth
asked
1 answers
0

The easiest approach will be to create a JSON Structure for the expected output that API expects, and use an Export Mapping to convert your data to JSON. You can use the Export Mapping in the Call REST action you use to send the data.

 

https://docs.mendix.com/refguide/json-structures/

https://docs.mendix.com/refguide/export-mappings/

https://docs.mendix.com/refguide/call-rest-action/

 

I hope this helps.

answered