private void jsonToScore(String jsonString) {
        jsonString = jsonString.substring(jsonString.indexOf('[') + 2, jsonString.indexOf(']') - 1);
        String[] jsonStringArray = jsonString.split("(\\},\\{)");

        for (int i = 0; i < jsonStringArray.length; i++) {
            String s = jsonStringArray[i];
            StringBuilder name = new StringBuilder();
            StringBuilder score = new StringBuilder();
            StringBuilder id = new StringBuilder();

            int countQuotes = 0;
            boolean isSkipFirstChar = false;//checks if the ':' is skipped when get score
            for (int j = 0; j < s.length(); j++) {
                char currentChar = s.charAt(j);
                if (currentChar == '\"') {
                    countQuotes++;
                    continue;
                }

                switch (countQuotes) {
                    case 3:
                        name.append(currentChar);
                        break;
                    case 6:
                        if (!isSkipFirstChar) {
                            isSkipFirstChar = true;
                        } else {
                            score.append(currentChar);
                        }
                        break;
                    case 17:
                        id.append(currentChar);
                        break;
                }
            }

            score = new StringBuilder(score.substring(0, score.length() - 1));

            Score sc = new Score(id.toString(), name.toString(), Long.parseLong(score.toString()));
            bestScores.add(sc);
        }
    }