Uno de los problemas que puede darnos quebraderos de cabeza, en las invocaciones a servicios REST, es la malformación del body cuando trabajamos con JSON.
La mayoría de editores de texto no valida este formato y, cuando el mensaje es muy extenso, el menor cambio, puedo producir un body incorrecto.
Para evitar esto os recomiendo emplear un verificador on-line. No requieren instalación por su sencillez y nos sacaran rápidamente de dudas. Tras probar varios de estos programas, os sugiero el siguiente:
jsonformatter
Es gratuito, muestra bien donde esta el fallo y además permite varias opciones para formatear el texto.
_____________________________________________
One of the most common problem when you invoke to REST services is possibility of malformed body when use JSON.
Most of text editors don't validate this format and, when the mensage is longer, a little change can have any error.
To avoid this I suggest use a validator on-line. It doesn't required any installation and solves quickly the error. After test several of these programs I recommend the following next:
jsonformatter
It's free, shows to you very well where the fail is and also has several options for formatting the text.