[rest api] Decode JSON response

1
I'm consuming a REST api with Mendix, which responds with HTML in a string. This HTML / string is JSON encoded. (The double quotes and forwardslashes in HTML are escaped with a backslash). Is there a action / method to decode JSON in Mendix? Like for example this json-simple java library? https://code.google.com/archive/p/json-simple/ JSON respons example: <\/p><br \/><br \/><br \/><br \/> <figure class=\"alignleft is-resized\">
asked
1 answers
1

As a workaround you can wrap it to a real JSON

‘{“html”:”’ + $yourdata+’”}’

and then do a JSON import. That will work without any additional modules. 

answered