HTML tags validation for JSON

Hi,

I don’t understand why this “formatted as JSON safe” markup is generating error while parsing to JSON:

"<div id=\"btewrapperdiv\" style=\"font-size:14px;color:rgb(37, 37, 37);background-color:rgba(0, 0, 0, 0);font-size:14px;font-style:normal;font-weight:400;text-decoration:none solid rgb(37, 37, 37);font-family:Questrial;line-height:1.72;\"><p><strong>1)</strong>&nbsp;Affiancamento e consulenza aggiornamento Wordpress e Thema</p><p><br></p><p><strong>2)</strong>&nbsp;Form contatti azienda, con registrazione dati nell' admin di Wordpress e invio dati a Invernizzi e conferma all’utente della registrazione.</p><p>Deve essere anche obbligatorio il flag alla privacy&nbsp;(link iubenda)</p><p><em>Questo serve solo per raccolta dati, non c’entra con l’area riservata&nbsp;</em></p><p><br></p><p><strong>3)</strong>&nbsp;Predisposizione Area o pagina riservata con gli stessi accessi creati da Invernizzi, di seguito:</p><p><br></p><p>-Pagina riservata con la stessa login per tutti gli utenti, generate e fornite da Ivernizzi.</p><p><em>In ogni caso questo plugin dovrà avere un estensione per prevedere in futuro la registrazione da parte dell’utente</em></p><p><br></p><p>- Gli utenti&nbsp;accedono alla stessa area uguale per&nbsp;tutti, non un’area personalizzata.</p><p>- L’utente in questa area riservata, potrà solo fare download dei file</p><p><br></p><p><strong>4)</strong>&nbsp;Ripristino plugin WPML, a quanto pare prima il sito era in italiano e inglese, quindi i contenuti in iognlese sono già presenti sul sito</p><p><br></p><p><strong>5)</strong>&nbsp;Installare un plugin&nbsp;di&nbsp;redirect da http a https, perché il dominio è registrato su register e use digito&nbsp;<a href=\"http://risoinvernizzi.it/\" target=\"_blank\" style=\"color: rgb(17, 85, 204);\">http://risoinvernizzi.it</a>&nbsp;mi esce la schermata di register</p></div>"

here is the screenshot: Dropbox Capture

Any information about what actions are actually throwing an error?

Hi,
Hi!

I’ve this workflow: Dropbox Capture

that sends out an email using Postmark API

That does not say much about what the action is doing.
Without details I guess the prolem it’s that you are passing dynamic strings to a json object with quotes already surrounding the dynamic text. “Formatted as json safe” adds surrounding quotes too, so the extra pair breaks the json (eg. "data":"<dynamic data here>""data":""hello world"")

Can you share API Connector plugin settings?
If you use json-safe encodded function, keep in mind that this will also add doubles quotes, so if you add it in the json, this will create an issue. Or if you use the parameter. il will also create an issue. You can always use requestbin endpoint to test and see what Bubble is sending and catch any json format error.

Thank you, that was the case.

1 Like

:man_shrugging: