client now decode json
added Java client