<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>try url encoding the json string</p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 17/4/21 23:21, Sukhdev Mohan wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:56971397-178C-4796-AE0E-9AB080063C48@myti.it">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      Hello All,
      <div class=""><br class="">
      </div>
      <div class="">I’m using pentane data integration and importing
        data into vtiger v7 through rest API’s. </div>
      <div class="">I’m doing POST request (form-url-encode) and in the
        body I’ve this</div>
      <div class=""><font style="background-color: rgb(0, 0, 0);"
          class="" face="Menlo" color="#f0ffcb">elementType=Products&element={productname:
          “”, productcode: “”, description: “"}</font></div>
      <div class=""><br class="">
      </div>
      <div class="">Sometimes in the productname or description there is
        a “&” and as you can guess this breaks the json resulting in
        error. I’ve tried sending plain text and it doesn’t work either.
        <b class="">How can I proceed? </b></div>
      <div class=""><br class="">
      </div>
      <div class=""><br class="">
      </div>
      <div class="">Probably this is a bug and we need to re-design the
        API’s expecting the body as a json possible implementation:</div>
      <div class=""><br class="">
      </div>
      <div class=""><font style="background-color: rgb(0, 0, 0);"
          class="" face="Menlo" color="#f0ffcb">{</font></div>
      <div class=""><font style="background-color: rgb(0, 0, 0);"
          class="" face="Menlo" color="#f0ffcb"><span class="Apple-tab-span" style="white-space:pre">        </span>element:
          “ELEMENT”,</font></div>
      <div class=""><font style="background-color: rgb(0, 0, 0);"
          class="" face="Menlo" color="#f0ffcb"><span class="Apple-tab-span" style="white-space:pre">        </span>data:
          {</font></div>
      <div class=""><font style="background-color: rgb(0, 0, 0);"
          class="" face="Menlo" color="#f0ffcb"><span class="Apple-tab-span" style="white-space:pre">        </span>}</font></div>
      <div class=""><font style="background-color: rgb(0, 0, 0);"
          class="" face="Menlo" color="#f0ffcb">}</font></div>
      <div class=""><br class="">
        <div class="">
          <div dir="auto" style="caret-color: rgb(0, 0, 0); color:
            rgb(0, 0, 0); letter-spacing: normal; text-align: start;
            text-indent: 0px; text-transform: none; white-space: normal;
            word-spacing: 0px; -webkit-text-stroke-width: 0px;
            text-decoration: none; word-wrap: break-word;
            -webkit-nbsp-mode: space; line-break: after-white-space;"
            class="">
            <div dir="auto" style="caret-color: rgb(0, 0, 0); color:
              rgb(0, 0, 0); letter-spacing: normal; text-align: start;
              text-indent: 0px; text-transform: none; white-space:
              normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;
              text-decoration: none; word-wrap: break-word;
              -webkit-nbsp-mode: space; line-break: after-white-space;"
              class="">
              <div dir="auto" style="caret-color: rgb(0, 0, 0); color:
                rgb(0, 0, 0); letter-spacing: normal; text-align: start;
                text-indent: 0px; text-transform: none; white-space:
                normal; word-spacing: 0px; -webkit-text-stroke-width:
                0px; text-decoration: none; word-wrap: break-word;
                -webkit-nbsp-mode: space; line-break:
                after-white-space;" class="">
                <div dir="auto" style="caret-color: rgb(0, 0, 0); color:
                  rgb(0, 0, 0); letter-spacing: normal; text-align:
                  start; text-indent: 0px; text-transform: none;
                  white-space: normal; word-spacing: 0px;
                  -webkit-text-stroke-width: 0px; text-decoration: none;
                  word-wrap: break-word; -webkit-nbsp-mode: space;
                  line-break: after-white-space;" class="">
                  <div dir="auto" style="caret-color: rgb(0, 0, 0);
                    color: rgb(0, 0, 0); letter-spacing: normal;
                    text-align: start; text-indent: 0px; text-transform:
                    none; white-space: normal; word-spacing: 0px;
                    -webkit-text-stroke-width: 0px; text-decoration:
                    none; word-wrap: break-word; -webkit-nbsp-mode:
                    space; line-break: after-white-space;" class="">
                    <div>Best Regards,<br class="">
                      <b class="">Sukhdev Mohan</b> | <b class="">Software Developer</b></div>
                  </div>
                  <br class="Apple-interchange-newline">
                </div>
                <br class="Apple-interchange-newline">
              </div>
              <br class="Apple-interchange-newline">
            </div>
            <br class="Apple-interchange-newline">
          </div>
          <br class="Apple-interchange-newline">
          <br class="Apple-interchange-newline">
        </div>
        <br class="">
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
<a class="moz-txt-link-freetext" href="http://www.vtiger.com/">http://www.vtiger.com/</a></pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Un saludo
Joe
TSolucio

JPL TSolució, S.L. garantiza la confidencialidad de los datos que obran en su poder y según lo estipulado por la LOPD 
(Ley Orgánica 15/1999 de 13 de diciembre de Protección de Datos de Carácter Personal). Este mensaje se dirige 
exclusivamente a su destinatario y puede contener información privilegiada o confidencial. Si no es vd. el destinatario 
indicado, queda notificado de que la lectura, utilización, divulgación y/o copia sin autorización está prohibida en 
virtud de la legislación vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente 
por esta misma vía y proceda a su destrucción. El correo electrónico vía Internet no permite asegurar la confidencialidad 
de los mensajes que se transmiten ni su integridad o correcta recepción. JPL TSolució, S.L. no asume ninguna 
responsabilidad por estas circunstancias.</pre>
  </body>
</html>