<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">That solved. <div class="">IMHO it’s time to redesign the api to be completely RESTFUL not some workaround to use FORM URL ENCODE and have json in a field.<div class=""><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>
<div><br class=""><blockquote type="cite" class=""><div class="">Il giorno 19 apr 2021, alle ore 10:18, Sutharsan J <<a href="mailto:ajstharsan@gmail.com" class="">ajstharsan@gmail.com</a>> ha scritto:</div><br class="Apple-interchange-newline"><div class=""><div dir="auto" class="">Hi</div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">There can't be issue in api as we use it several times, but using cURL. May be url encoding should be done before json encoding, probably urlencode each field separately the build json. Did you try that?</div><div dir="auto" class=""><br class=""></div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">Thanks</div><div dir="auto" class="">Sutharsan jeganathan </div><div class=""><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 18 Apr 2021 at 03:38 Sukhdev Mohan <<a href="mailto:s.mohan@myti.it" class="">s.mohan@myti.it</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto" class=""><div class="">Tried that, not working<br class=""><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il sab 17 apr 2021, 23:57 Joe Bordes <<a href="mailto:joe@tsolucio.com" target="_blank" class="">joe@tsolucio.com</a>> ha scritto:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div class=""><p class="">try url encoding the json string</p><p class=""><br class="">
    </p>
    <div class="">On 17/4/21 23:21, Sukhdev Mohan wrote:<br class="">
    </div>
    <blockquote type="cite" class="">
      
      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)" face="Menlo" color="#f0ffcb" class="">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)" face="Menlo" color="#f0ffcb" class="">{</font></div>
      <div class=""><font style="background-color:rgb(0,0,0)" face="Menlo" color="#f0ffcb" class=""><span style="white-space:pre-wrap" class="">        </span>element:
          “ELEMENT”,</font></div>
      <div class=""><font style="background-color:rgb(0,0,0)" face="Menlo" color="#f0ffcb" class=""><span style="white-space:pre-wrap" class="">        </span>data:
          {</font></div>
      <div class=""><font style="background-color:rgb(0,0,0)" face="Menlo" color="#f0ffcb" class=""><span style="white-space:pre-wrap" class="">        </span>}</font></div>
      <div class=""><font style="background-color:rgb(0,0,0)" face="Menlo" color="#f0ffcb" class="">}</font></div>
      <div class=""><br class="">
        <div class="">
          <div dir="auto" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; word-wrap: break-word; line-break: after-white-space;" class="">
            <div dir="auto" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; word-wrap: break-word; line-break: after-white-space;" class="">
              <div dir="auto" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; word-wrap: break-word; line-break: after-white-space;" class="">
                <div dir="auto" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; word-wrap: break-word; line-break: after-white-space;" class="">
                  <div dir="auto" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none; word-wrap: break-word; line-break: after-white-space;" class="">
                    <div class="">Best Regards,<br class="">
                      <b class="">Sukhdev Mohan</b> | <b class="">Software Developer</b></div>
                  </div>
                  <br class="">
                </div>
                <br class="">
              </div>
              <br class="">
            </div>
            <br class="">
          </div>
          <br class="">
          <br class="">
        </div>
        <br class="">
      </div>
      <br class="">
      <fieldset class=""></fieldset>
      <pre class="">_______________________________________________
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank" class="">http://www.vtiger.com/</a></pre>
    </blockquote>
    <pre cols="72" class="">-- 
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>
  </div>

_______________________________________________<br class="">
<a href="http://www.vtiger.com/" rel="noreferrer noreferrer" target="_blank" class="">http://www.vtiger.com/</a></blockquote></div></div></div>
_______________________________________________<br class="">
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank" class="">http://www.vtiger.com/</a></blockquote></div></div>-- <br class=""><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr" class=""><font color="#9999ff" class=""><i class="">Development Manager<br class="">
        Radus28 Software Solution<br class="">
        <img src="cid:part4.EAFD845F.485F57C8@radus28.com" title="www.radus28.com" alt="Radus28 Software Solution" width="205" height="60" class=""><br class="">
        123, Level 2, Mc Larens Building<br class="">
        Baudhaloka Mw.<br class="">
        Colombo 04<br class="">
        Sri Lanka<br class="">
        M : +94773795291<br class="">
        E  : <a href="mailto:sutharsan@radus28.com" target="_blank" class="">sutharsan@radus28.com</a><br class="">
        W : <a href="http://www.radus28.com/" target="_blank" class="">www.radus28.com</a></i></font></div></div>
<span id="cid:%3C%3E"><logo_web.png></span>_______________________________________________<br class=""><a href="http://www.vtiger.com/" class="">http://www.vtiger.com/</a></div></blockquote></div><br class=""></div></div></div></body></html>