public static User getUserFromJson(JSONObject obj){
		if(obj == null)
			return null;
		
		User user = new User();
		
		Object value = obj.get("id");
		if(value != null)
		{
			user.setId(value.toString());
		}
		
		
		value = obj.get("id_room");	
		if(value!=null)
		{
			user.setId_room(value.toString());
		}
		
		value = obj.get("nickname");
		if(value!=null)
		{
			user.setNickname(value.toString());
		}
		
		value = obj.get("phone");
		if(value!=null)
		{
			user.setPhone(value.toString());
		}
		
		value = obj.get("latitude");
		if(value!=null)
		{
			user.setLatitude(Double.parseDouble(value.toString()));
		}
		
		value = obj.get("longitude");
		if(value!=null)
		{
			user.setLongitude(Double.parseDouble(value.toString()));
		}
		
		value = obj.get("id_team");
		if(value!=null)
		{
			user.setId_team(Integer.parseInt(value.toString()));
		}
		
		value = obj.get("future_id_team");
		if(value!=null)
		{
			user.setFuture_id_team(Integer.parseInt(value.toString()));
		}
		
		
		return user;
	}