bugfixes , json validation and object response

Signed-off-by: Eduardo Stuart <contato@eduardostuart.com.br>