JSON1 Python, api로 xml데이터 가져와 json으로 변경 개요 협업 프로젝트 중 AI팀과 빅데이터 팀에서 xml형식보단 json형식의 데이터가 좀 더 사용성이 좋다고 하여 데이터 Python에서 xml데이터를 json데이터로 변경했다. 코드#-*- coding: utf-8 -*- import requests from django.shortcuts import render from django.conf import settings import xmltodict import json from django.http import JsonResponse,HttpResponse from .serializer import Serializer from .models import Hotspot # Create your views here. def get_seoul_hotspo.. 2024. 4. 12. 이전 1 다음