Jersy with JSON works on a string passed to the service