private string CreateTarotInformationJson(TarotCardInformation tarotInfo)
        {
            var list = new List <TarotCardInformation> {
                tarotInfo
            };
            TarotDatabaseInformations database = new TarotDatabaseInformations();

            database.TarotCard = list.ToArray();
            return(JsonUtility.ToJson(database, true));
        }
        private void DisplayAddMainArea()
        {
            newTarotCardName        = EditorGUILayout.TextField(new GUIContent(cardName), newTarotCardName);
            newTarotCardEnglishName = EditorGUILayout.TextField(new GUIContent(cardEnglishName), newTarotCardEnglishName);
            newTarotCardNumber      = Convert.ToInt32(EditorGUILayout.TextField(new GUIContent(cardNumber), newTarotCardNumber.ToString()));
            newTarotKeyword         = EditorGUILayout.TextField(new GUIContent(keyword), newTarotKeyword);
            EditorGUILayout.Space();
            EditorGUILayout.Space();
            EditorGUILayout.Space();
            currentSituation_up = EditorGUILayout.TextField(new GUIContent(currentSituation + upright + semicolon), currentSituation_up);
            currentSituation_re = EditorGUILayout.TextField(new GUIContent(currentSituation + reverse + semicolon), currentSituation_re);
            EditorGUILayout.Space();
            feelings_up = EditorGUILayout.TextField(new GUIContent(humanFeelings + upright + semicolon), feelings_up);
            feelings_re = EditorGUILayout.TextField(new GUIContent(humanFeelings + reverse + semicolon), feelings_re);
            EditorGUILayout.Space();
            cause_up = EditorGUILayout.TextField(new GUIContent(problemCause + upright + semicolon), cause_up);
            cause_re = EditorGUILayout.TextField(new GUIContent(problemCause + reverse + semicolon), cause_re);
            EditorGUILayout.Space();
            future_up = EditorGUILayout.TextField(new GUIContent(future + upright + semicolon), future_up);
            future_re = EditorGUILayout.TextField(new GUIContent(future + reverse + semicolon), future_re);
            EditorGUILayout.Space();
            advice_up = EditorGUILayout.TextField(new GUIContent(advice + upright + semicolon), advice_up);
            advice_re = EditorGUILayout.TextField(new GUIContent(advice + reverse + semicolon), advice_re);
            EditorGUILayout.Space();
            EditorGUILayout.Space();
            EditorGUILayout.Space();
            love_up = EditorGUILayout.TextField(new GUIContent(love + upright + semicolon), love_up);
            love_re = EditorGUILayout.TextField(new GUIContent(love + reverse + semicolon), love_re);
            EditorGUILayout.Space();
            work_up = EditorGUILayout.TextField(new GUIContent(work + upright + semicolon), work_up);
            work_re = EditorGUILayout.TextField(new GUIContent(work + reverse + semicolon), work_re);
            EditorGUILayout.Space();
            interpersonal_up = EditorGUILayout.TextField(new GUIContent(interpersonal + upright + semicolon), interpersonal_up);
            interpersonal_re = EditorGUILayout.TextField(new GUIContent(interpersonal + reverse + semicolon), interpersonal_re);
            EditorGUILayout.Space();
            other_up = EditorGUILayout.TextField(new GUIContent(other + upright + semicolon), other_up);
            other_re = EditorGUILayout.TextField(new GUIContent(other + reverse + semicolon), other_re);

            EditorGUILayout.Space();

            if (GUILayout.Button("Jsonファイルを作成して保存", GUILayout.Width(200), GUILayout.Height(100)))
            {
                var tarot = new TarotCardInformation(newTarotCardName,
                                                     newTarotCardEnglishName,
                                                     newTarotCardNumber,
                                                     newTarotKeyword,
                                                     currentSituation_up,
                                                     currentSituation_re,
                                                     feelings_up,
                                                     feelings_re,
                                                     cause_up,
                                                     cause_re,
                                                     future_up,
                                                     future_re,
                                                     advice_up,
                                                     advice_re,
                                                     love_up,
                                                     love_re,
                                                     work_up,
                                                     work_re,
                                                     interpersonal_up,
                                                     interpersonal_re,
                                                     other_up,
                                                     other_re);

                var jsonString = CreateTarotInformationJson(tarot);
                var filename   = tarot.number + "_" + tarot.cardEngName + ".json";
                SaveFile(jsonString, filename);

                databaseObject.Add(tarot);
                databaseObject.SortTarotNumber();
                EditorUtility.SetDirty(databaseObject);
                dataState = State.BLANK;
                ResetParameters();
            }
        }