java client for testing json working