java. Fixed json tests, fixed #214.