728x90 반응형 IT/JSON6 가상 json-server 구축하기 1. 설치 npm i json-server 2. 응답 데이터 파일 만들기(db.json) 프로젝트 루프 폴더에 db.json 파일을 생성합니다. 그리고 아래의 데이터를 저장해 줍다. { "posts": [ { "id": 1, "title": "json-server", "author": "typicode" } ], "comments": [ { "id": 1, "body": "some comment", "postId": 1 } ], "profile": { "name": "typicode" } } 3. 이후 사용법은 아래글 참고 https://velog.io/@harimad/%ED%94%84%EB%A1%A0%ED%8A%B8%EC%97%94%EB%93%9C-%EA%B0%9C%EB%B0%9C%EC%9E%90%EB.. 2023. 11. 7. Json Beautifier 사이트 https://codebeautify.org/jsonviewer Best JSON Viewer and JSON Beautifier Online Online JSON Viewer, JSON Beautifier and Formatter to beautify and tree view of JSON data - It works as JSON Pretty Print to pretty print JSON data. codebeautify.org 2023. 11. 7. 깃헙 JsonPath 링크들 타고 들어가면, 하단에 Syntax 가 설명되어 있다. https://github.com/json-path/JsonPath GitHub - json-path/JsonPath: Java JsonPath implementation Java JsonPath implementation. Contribute to json-path/JsonPath development by creating an account on GitHub. github.com 2023. 11. 7. String을 JSON 맵핑시 Unrecognized field.. not marked as ignorable com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "mId" DTO 클래스에는 분명히 mId 로 정의했지만, String을 VO 로 전환시, mid 로 변경되면서 Exception 일 발생하는 현상이 있었다. 아래와 같이 @JsonProperty 를 사용해서 강제로 알려줘서 해결함. @JsonProperty("mId") // 맵핑시 mid 로 변경되는걸 방지하기 위해서. private String mId; //상점아이디(MID). 토스페이먼츠에서 발급합. 최대 길이는 14자. 참고) https://ynzu-dev.tistory.com/entry/JAVA-JSON-to-VO-JSON%EC%9D%98-key.. 2023. 5. 14. 이전 1 2 다음 728x90 반응형