public static Usericon parseModIcon(String json){
  try {
    JSONParser parser=new JSONParser();
    JSONObject o=(JSONObject)parser.parse(json);
    JSONObject room=(JSONObject)o.get("room");
    String roomId=(String)room.get("id");
    String modBadgeUrl=(String)room.get("moderator_badge");
    if (modBadgeUrl == null) {
      return null;
    }
    return UsericonFactory.createTwitchLikeIcon(Usericon.Type.MOD,roomId,modBadgeUrl,Usericon.SOURCE_FFZ,"Moderator (FFZ Icon)");
  }
 catch (  ParseException|ClassCastException|NullPointerException ex) {
  }
  return null;
}

public static Usericon parseModIcon ( String json ) { try { JSONParser parser = new JSONParser ( ) ; JSONObject o = ( JSONObject ) parser . parse ( json ) ; JSONObject room = ( JSONObject ) o . get ( "room" ) ; String roomId = ( String ) room . get ( "id" ) ; String modBadgeUrl = ( String ) room . get ( "moderator_badge" ) ; if ( modBadgeUrl == null ) { return null ; } return UsericonFactory . createTwitchLikeIcon ( Usericon . Type . MOD , roomId , modBadgeUrl , Usericon . SOURCE_FFZ , "Moderator (FFZ Icon)" ) ; } catch ( ParseException | ClassCastException | NullPointerException ex ) { } return null ; }
parses the mod icon . request : / room / : room
