as_json return java style