[Spring Boot] JSON을 활용한 API 통신 예제 + JSON 형변환 (Gson, ObjectMapper, JSONParser)
2023. 1. 11. 17:26
Spring Boot/문법 정리
API 통신과 JSON에 대해 정리 JSON으로 형변환 하는 방법 정리 JSON 이란? JSON(JavaScript Object Notation)은 데이터를 저장/전송 할 때 많이 사용되는 형식 서버와 클라이언트 간의 통신에서 주로 많이 사용됨 아래와 같이 Key, Value 구조를 가짐 { "teamName" : "Tottenham", "league" : "Premier League", "ranking" : 5, "players" : [ { "name" : "Son Heungmin", "backNumber" : 7, "age" : 30 }, { "name" : "Harry Kane", "backNumber" : 10, "age" : 29 }, { "name" : "Hugo Lloris", "backNu..