[Vtigercrm-developers] [API]Problem with '&' in json

Sukhdev Mohan s.mohan at myti.it
Sat Apr 17 22:06:52 GMT 2021


Tried that, not working

Il sab 17 apr 2021, 23:57 Joe Bordes <joe at tsolucio.com> ha scritto:

> try url encoding the json string
>
>
> On 17/4/21 23:21, Sukhdev Mohan wrote:
>
> Hello All,
>
> I’m using pentane data integration and importing data into vtiger v7
> through rest API’s.
> I’m doing POST request (form-url-encode) and in the body I’ve this
> elementType=Products&element={productname: “”, productcode: “”,
> description: “"}
>
> 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. *How can I proceed? *
>
>
> Probably this is a bug and we need to re-design the API’s expecting the
> body as a json possible implementation:
>
> {
> element: “ELEMENT”,
> data: {
> }
> }
>
> Best Regards,
> *Sukhdev Mohan* | *Software Developer*
>
>
>
>
>
>
>
>
> _______________________________________________http://www.vtiger.com/
>
> --
> 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.
>
> _______________________________________________
> http://www.vtiger.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20210418/3a7fdea4/attachment-0001.html>


More information about the vtigercrm-developers mailing list