implement webservices with JSON