아트센스3 – json포맷 글쓰기

아트센스3 – json포맷 글쓰기

1)글감 구상하기

오늘의 글감은?
무슨글을 작성할까?
나는 무엇에 흥미를 느끼고 있지,
오늘의 잇슈는 뭐지?
그렇다.
미국대선이다.
“`오늘의 주제는 토트넘훗스퍼의 축구일정“`대한 것이다.

2)시리즈 형식 구상하기

이제는 매일, 매주 토트넘훗스퍼의 축구일정을 연재한다.

오케이, 그럼 어떤 서식으로 쓰지

그래서 고안한것이 널리 알려진 json포맷으로 글을 템플릿을 작성하기로 한다. 그럼 좀더 일관성있는 글을 작성할 수 있을 것 같다.

그래서 짓피티에게  지시를 했어~

그래서 내친구 지피티는 이렇게 답을 하는 거야.  아래와 같습니다.

구체적으로 이런 서식이지, 이렇게 생각을 합니다.
{
  “team”: “Tottenham Hotspur”,
  “schedule”: [
    {
      “date”: “YYYY-MM-DD”,
      “time”: “HH:MM”,
      “opponent”: “Opponent Team Name”,
      “location”: “Home/Away”,
      “venue”: “Stadium Name”,
      “competition”: “League/Competition Name”,
      “result”: {
        “score”: “Tottenham Score – Opponent Score”,
        “status”: “Win/Loss/Draw/Not Played”
      },
      “summary”: “A brief summary or key highlights of the match, such as notable players or events.”
    },
    {
      “date”: “YYYY-MM-DD”,
      “time”: “HH:MM”,
      “opponent”: “Opponent Team Name”,
      “location”: “Home/Away”,
      “venue”: “Stadium Name”,
      “competition”: “League/Competition Name”,
      “result”: {
        “score”: “Tottenham Score – Opponent Score”,
        “status”: “Win/Loss/Draw/Not Played”
      },
      “summary”: “A brief summary or key highlights of the match, such as notable players or events.”
    }
  ]
}

JSON 포맷 필드 설명

  • team: "Tottenham Hotspur" (항상 일정의 팀 이름을 포함)
  • schedule: 경기 일정을 포함하는 배열로, 각 경기별 세부사항이 객체로 나열됩니다.
    • date: 경기 날짜 (YYYY-MM-DD 형식)
    • time: 경기 시작 시간 (HH

      형식)

    • opponent: 상대 팀 이름
    • location: 홈 경기인지 원정 경기인지 구분 (Home/Away)
    • venue: 경기장이름
    • competition: 리그나 대회 이름 (예: EPL, 챔피언스리그 등)
    • result:
      • score: 토트넘과 상대 팀의 점수 (예: “2-1”)
      • status: 경기 결과 (Win/Loss/Draw/Not Played)
    • summary: 경기 요약 또는 주요 하이라이트 (필요 시 입력)

사용 예시

일정을 매주 업데이트할 때, 새 경기를 schedule 배열에 추가하여 블로그에 빠르게 적용할 수 있습니다.

나는 오늘이라는 일정만 주면 되는데, 좀더 서비스를 합니다.

json서식은 다음과 같습니다.
{
  “team”: “Tottenham Hotspur”,
  “date”: “YYYY-MM-DD”,
  “overview”: {
    “current_date”: “오늘 날짜 (YYYY-MM-DD)”
  },
  “previous_match”: {
    “date”: “이전 경기 날짜 (YYYY-MM-DD)”,
    “opponent”: “Opponent Team Name”,
    “location”: “Home/Away”,
    “venue”: “Stadium Name”,
    “competition”: “League/Competition Name”,
    “result”: {
      “score”: “Tottenham Score – Opponent Score”,
      “status”: “Win/Loss/Draw”
    },
    “summary”: “이전 경기 요약 또는 주요 하이라이트 (예: 골 장면, 주요 선수)”
  },
  “current_week_schedule”: [
    {
      “date”: “이번 주 경기 날짜 (YYYY-MM-DD)”,
      “time”: “HH:MM”,
      “opponent”: “Opponent Team Name”,
      “location”: “Home/Away”,
      “venue”: “Stadium Name”,
      “competition”: “League/Competition Name”,
      “summary”: “경기 미리보기, 주요 선수, 경기 기대 포인트”
    },
    {
      “date”: “이번 주 경기 날짜 (YYYY-MM-DD)”,
      “time”: “HH:MM”,
      “opponent”: “Opponent Team Name”,
      “location”: “Home/Away”,
      “venue”: “Stadium Name”,
      “competition”: “League/Competition Name”,
      “summary”: “경기 미리보기, 주요 선수, 경기 기대 포인트”
    }
  ],
  “upcoming_matches”: [
    {
      “date”: “다가오는 경기 날짜 (YYYY-MM-DD)”,
      “time”: “HH:MM”,
      “opponent”: “Opponent Team Name”,
      “location”: “Home/Away”,
      “venue”: “Stadium Name”,
      “competition”: “League/Competition Name”,
      “summary”: “향후 경기에 대한 간단한 기대 포인트”
    }
  ]
}

Read more