service implemented in JSON using jackson