Myoneemyonee.hashnode.dev·Jul 30, 2024Jackson 라이브러리Jackson JSON 데이터 구조를 처리해주는 라이브러리 Spring Framework와 함께 사용할 때, REST API의 요청 및 응답에서 JSON 직렬화 및 역직렬화 과정을 자동으로 처리해준다. @GetMapping과 같은 어노테이션을 사용하여 REST 엔드포인트를 정의하면, Spring은 자동으로 요청 본문을 Java 객체로 변환하고, 응답 객체를 JSON으로 변환한다. 기본적으로 프로퍼티(Property)로 동작 Java는 프로퍼...Discussjackson
Marcelo Paixão Resendemarceloresende.dev·Jul 1, 2024Detecting Absent Properties in Java REST APIs with Jackson, Spring, and Custom DeserializersIn modern software development, ensuring backward compatibility with older clients while introducing new features can be challenging. One such challenge is detecting whether a specific property was sent through a REST API request. By default, Jackson...Discuss·30 readsJava
Yichun Zhaoyichunzhao.hashnode.dev·Jan 27, 2024Jackson: TypeReferenceTypeReference is a class provided by the Jackson library in Java, used to convey generic type information. Java's generic type information is lost during runtime due to type erasure, but sometimes you need this information for operations like JSON se...Discuss·27 readsjackson
Alessandro Porfiriale.hashnode.dev·Nov 30, 2023Read Csv File In JavaThat's right, another article on how to read/parse a csv in Java! But there are millions on the web.. That means there is demand 😁 No further ado, let's jump into it. Should you use a library Because we are going to write production code, the answer...Discuss·1 like·78 readsmaven
Random developerrandom-dev.hashnode.dev·Nov 21, 2023Enhancing JSON Manipulation in Java with Jackson JsonNodeJSON, or JavaScript Object Notation, serves as a widely adopted data exchange format due to its simplicity and ease of use. However, when dealing with JSON in a language like Java, where objects are omnipresent, the relevance of JSON nodes becomes ap...Discussjackson
Merge Simpsonblog.letsdev.me·Nov 18, 2023응답이 변칙적이에요? 응답하라, 변칙 Response Body. Spring Boot API🇰🇷 Kor: 지금 보는 중!🗺 Eng: Not yet!🇯🇵 Jap: まだです。 API 데이터 입출력 여기 API 요청과 응답을 표현한 작은 그림이 있습니다. 웹 표준이 XML이고 뭐고, 우리는 어차피 JSON 양식으로 데이터를 주고 받는 편입니다. JSON은 자바스크립트 객체의 모습을 띤 문자열 데이터로, 읽기 쉬우면서도 여러 환경에서 쉽게 호환되는 양식이기 때문에 여러 곳에서 선호하거든요. 스프링 부트에서는 이 JSON 문자열...Discuss·47 readsjson include
Zikani Nyirenda Mwasezikani.hashnode.dev·Sep 23, 2023Keeping @JsonProperty and Bean Validation field error messages in sync in a Spring Boot projectDamn, this one bit me very recently. So imagine you have a Java API and because of whatever reasons you agreed that the JSON properties for the requests should be in snake_case_form. Cool, cool, that just wants a simple Jackson @JsonProperty annotati...Discuss·1.1K readsSpringboot
Chris Bathblog.bluurr.com·Sep 9, 2023Jackson - Controlling What You Don't OwnThis post explores how to customise JSON output using several Jackson features and Spring Boot . Even when you can't modify class definitions, learn valuable techniques like mixin and delegates . Use case We have the following class definition: publi...Discuss·11 likes·79 readsjackson
Ahrooranahrooran.hashnode.dev·May 13, 2023Parsing Unstructured JSONIntroduction JSON, or JavaScript Object Notation, is a lightweight data-interchange format that is easy for both humans and machines to read and write. It is based on a subset of the JavaScript programming language, and is quickly becoming the de fac...Discuss·731 readsjson
Uday Kommireddyudaykirankommireddy.hashnode.dev·May 2, 2023Serialization & Deserialization of JSON using JacksonWhat is JSON? How will a Python application communicate with a SpringBoot server? They need a common language to convey information, right? For this purpose, there are standard formats like JSON, XML etc, made use of for transferring data across syst...Discuss·52 likes·104 readsjackson