I have an assortment of information from a buffer that I need to pick apart. I have spent hours trying to figure this out, my code works but it is chunky, large, memory inefficient, and overall poor quality. I just need help utilizing existing or new algorithms to figure this out.

This is anelementfrom aninfinitepossiblesetand each element is organized into a structured model (see below.) How does one go about extracting a specific set of characters (the text on the lines I commented below) that have indexes that vary? The names that showed up in this example are varying and would be impossible to know beforehand.

Goal:To return an array/list of names extracted from the data model below, for example, the perfect code would return this data.

It should return a set of names without knowing what they are beforehand. Help me brainstorm![dasubernoob],[steelreserve],[mutagal],[nekromight],[dontkillmi],[hiiru],[animevt],[lhavewarts],[darkneocross],[eio]

//Note that this is not java code, but a input of information that has been automatically structured. //The variables are the values after the colons of each object. { { "reconnectDelay": 180, "dataVersion": 0, "game": { "passwordSet": false, "spectatorsAllowed": "NONE", "gameType": "NORMAL_GAME", "practiceGameRewardsDisabledReasons": { "array": [ ] }, "gameTypeConfigId": 1, "gameState": "IN_PROGRESS", "observers": { "array": [ ] }, "statusOfParticipants": "1111111111", "glmSecurePort": 0, "id": 1174840217, "teamTwo": { "array": [ { "index": 0, "timeAddedToQueue": 1385589663700, "accountId": 33810695, "queueRating": 0, "originalAccountNumber": 33810695, "botDifficulty": "NONE", "summonerInternalName": "dasubernoob", //Extract out the data in quotes "dasubernoob" "minor": false, "partnerId": "", "lastSelectedSkinIndex": 6, "profileIconId": 512, "rankedTeamGuest": false, "teamOwner": true, "summonerId": 20721375, "badges": 0, "pickTurn": 1, "dataVersion": 1, "clientInSynch": true, "summonerName": "DasUberNoob", "pickMode": 0, "originalPlatformId": "NA", "teamParticipantId": 1396213667 }, { "index": 0, "timeAddedToQueue": 1385589663809, "accountId": 112162, "queueRating": 0, "originalAccountNumber": 112162, "botDifficulty": "NONE", "summonerInternalName": "steelreserve", //Extract out the data in quotes "steelreserve" "minor": false, "partnerId": "", "lastSelectedSkinIndex": 0, "profileIconId": 21, "rankedTeamGuest": false, "teamOwner": false, "summonerId": 85321, "badges": 4, "pickTurn": 1, "dataVersion": 1, "clientInSynch": true, "summonerName": "Steel Reserve", "pickMode": 0, "originalPlatformId": "NA" }, { "index": 0, "timeAddedToQueue": 1385589667918, "accountId": 39915078, "queueRating": 0, "originalAccountNumber": 39915078, "botDifficulty": "NONE", "summonerInternalName": "mutagal", //Extract out the data in quotes "mutagal" "minor": false, "partnerId": "", "lastSelectedSkinIndex": 0, "profileIconId": 28, "rankedTeamGuest": false, "teamOwner": false, "summonerId": 25324811, "badges": 0, "pickTurn": 1, "dataVersion": 1, "clientInSynch": true, "summonerName": "Mutagal", "pickMode": 0, "originalPlatformId": "NA", "teamParticipantId": 899931864 }, { "index": 0, "timeAddedToQueue": 1385589667918, "accountId": 37716646, "queueRating": 0, "originalAccountNumber": 37716646, "botDifficulty": "NONE", "summonerInternalName": "dontkillmi", //Extract out the data in quotes "dontkillmi" "minor": false, "partnerId": "", "lastSelectedSkinIndex": 7, "profileIconId": 576, "rankedTeamGuest": false, "teamOwner": true, "summonerId": 23591328, "badges": 0, "pickTurn": 1, "dataVersion": 1, "clientInSynch": true, "summonerName": "DontKillmi", "pickMode": 0, "originalPlatformId": "NA", "teamParticipantId": 899931864 }, { "index": 0, "timeAddedToQueue": 1385589663700, "accountId": 32224608, "queueRating": 0, "originalAccountNumber": 32224608, "botDifficulty": "NONE", "summonerInternalName": "hiiru", //Extract out the data in quotes "hiiru" "minor": false, "partnerId": "", "lastSelectedSkinIndex": 0, "profileIconId": 15, "rankedTeamGuest": false, "teamOwner": false, "summonerId": 19530723, "badges": 0, "pickTurn": 1, "dataVersion": 1, "clientInSynch": true, "summonerName": "Hiiru", "pickMode": 0, "originalPlatformId": "NA", "teamParticipantId": 1396213667 } ] }, "bannedChampions": { "array": [ ] }, "dataVersion": 0, "name": "Match-1174840217", "spectatorDelay": 0, "teamOne": { "array": [ { "index": 0, "timeAddedToQueue": 1385589669496, "accountId": 37168724, "queueRating": 0, "originalAccountNumber": 37168724, "botDifficulty": "NONE", "summonerInternalName": "eio", //Extract out the data in quotes "eio" "minor": false, "partnerId": "", "lastSelectedSkinIndex": 5, "profileIconId": 580, "rankedTeamGuest": false, "teamOwner": true, "summonerId": 23158993, "badges": 0, "pickTurn": 1, "dataVersion": 1, "clientInSynch": true, "summonerName": "EIo", "pickMode": 0, "originalPlatformId": "NA", "teamParticipantId": 367099955 }, { "index": 0, "timeAddedToQueue": 1385589669496, "accountId": 36876321, "queueRating": 0, "originalAccountNumber": 36876321, "botDifficulty": "NONE", "summonerInternalName": "lhavwarts", //Extract out the data in quotes "lhavewarts" "minor": false, "partnerId": "", "lastSelectedSkinIndex": 3, "profileIconId": 515, "rankedTeamGuest": false, "teamOwner": false, "summonerId": 22928062, "badges": 0, "pickTurn": 1, "dataVersion": 1, "clientInSynch": true, "summonerName": "l Hav Warts", "pickMode": 0, "originalPlatformId": "NA", "teamParticipantId": 367099955 }, { "index": 0, "timeAddedToQueue": 1385589665480, "accountId": 203071518, "queueRating": 0, "originalAccountNumber": 203071518, "botDifficulty": "NONE", "summonerInternalName": "nekromight", //Extract out the data in quotes "nekromight" "minor": false, "partnerId": "", "lastSelectedSkinIndex": 0, "profileIconId": 548, "rankedTeamGuest": false, "teamOwner": false, "summonerId": 40099514, "badges": 0, "pickTurn": 1, "dataVersion": 1, "clientInSynch": true, "summonerName": "Nekromight", "pickMode": 0, "originalPlatformId": "NA1", "teamParticipantId": 954047356 }, { "index": 0, "timeAddedToQueue": 1385589669496, "accountId": 36707870, "queueRating": 0, "originalAccountNumber": 36707870, "botDifficulty": "NONE", "summonerInternalName": "darkneocross", //Extract out the data in quotes "darkneocross" "minor": false, "partnerId": "", "lastSelectedSkinIndex": 0, "profileIconId": 584, "rankedTeamGuest": false, "teamOwner": false, "summonerId": 22793922, "badges": 0, "pickTurn": 1, "dataVersion": 1, "clientInSynch": true, "summonerName": "Darkneocross", "pickMode": 0, "originalPlatformId": "NA", "teamParticipantId": 367099955 }, { "index": 0, "timeAddedToQueue": 1385589665480, "accountId": 49312188, "queueRating": 0, "originalAccountNumber": 49312188, "botDifficulty": "NONE", "summonerInternalName": "animevt", //Extract out the data in quotes "animevt" "minor": false, "partnerId": "", "lastSelectedSkinIndex": 0, "profileIconId": 19, "rankedTeamGuest": false, "teamOwner": true, "summonerId": 34940920, "badges": 0, "pickTurn": 1, "dataVersion": 1, "clientInSynch": true, "summonerName": "animevt", "pickMode": 0, "originalPlatformId": "NA1", "teamParticipantId": 954047356 } ] }, "terminatedCondition": "NOT_TERMINATED", "queueTypeName": "NORMAL", "glmPort": 0, "optimisticLock": 70, "roomPassword": "nFvV8IU5xGxnV740", "maxNumPlayers": 10, "queuePosition": 0, "terminatedConditionString": "NOT_TERMINATED", "expiryTime": 0, "gameMode": "CLASSIC", "mapId": 1, "gameStateString": "IN_PROGRESS", "pickTurn": 3, "playerChampionSelections": { "array": [ { "dataVersion": 0, "summonerInternalName": "mutagal", "spell2Id": 14, "selectedSkinIndex": 0, "championId": 79, "spell1Id": 4 }, { "dataVersion": 0, "summonerInternalName": "nekromight", "spell2Id": 11, "selectedSkinIndex": 0, "championId": 59, "spell1Id": 4 }, { "dataVersion": 0, "summonerInternalName": "hiiru", "spell2Id": 4, "selectedSkinIndex": 0, "championId": 222, "spell1Id": 21 }, { "dataVersion": 0, "summonerInternalName": "dontkillmi", "spell2Id": 4, "selectedSkinIndex": 0, "championId": 4, "spell1Id": 14 }, { "dataVersion": 0, "summonerInternalName": "animevt", "spell2Id": 4, "selectedSkinIndex": 0, "championId": 115, "spell1Id": 14 }, { "dataVersion": 0, "summonerInternalName": "lhavwarts", "spell2Id": 21, "selectedSkinIndex": 0, "championId": 67, "spell1Id": 4 }, { "dataVersion": 0, "summonerInternalName": "darkneocross", "spell2Id": 4, "selectedSkinIndex": 0, "championId": 40, "spell1Id": 3 }, { "dataVersion": 0, "summonerInternalName": "eio", "spell2Id": 6, "selectedSkinIndex": 0, "championId": 75, "spell1Id": 12 }, { "dataVersion": 0, "summonerInternalName": "steelreserve", "spell2Id": 11, "selectedSkinIndex": 0, "championId": 5, "spell1Id": 4 }, { "dataVersion": 0, "summonerInternalName": "dasubernoob", "spell2Id": 14, "selectedSkinIndex": 6, "championId": 58, "spell1Id": 4 } ] }, "joinTimerDuration": 12 }, "gameName": "match-1174840217", "playerCredentials": { "observerServerIp": "216.133.234.17", "playerId": 37168724, "dataVersion": 0, "serverPort": 0, "gameId": 1174840217, "lastSelectedSkinIndex": 0, "observerServerPort": 8088, "observerEncryptionKey": "0GVI3+oCQVqDOcabsZm85jTRwvOpqPjQ", "championId": 0, "observer": true, "summonerId": 0 } }