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...Discussjackson
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 likemaven
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 Simpsonletsdev.hashnode.dev·Nov 18, 2023응답이 변칙적이에요? 응답하라, 변칙 Response Body. Spring Boot API🇰🇷 Kor: 지금 보는 중!🗺 Eng: Not yet!🇯🇵 Jap: まだです。 API 데이터 입출력 여기 API 요청과 응답을 표현한 작은 그림이 있습니다. 웹 표준이 XML이고 뭐고, 우리는 어차피 JSON 양식으로 데이터를 주고 받는 편입니다. JSON은 자바스크립트 객체의 모습을 띤 문자열 데이터로, 읽기 쉬우면서도 여러 환경에서 쉽게 호환되는 양식이기 때문에 여러 곳에서 선호하거든요. 스프링 부트에서는 이 JSON 문자열...Discuss·34 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·245 readsSpringboot
Chris BathProblog.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·245 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·306 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·101 readsjackson
Joseph Ganbwgjoseph.com·Dec 28, 2022Polymorphic DTO using Java Record with JacksonWith the introduction of Java Record class, it becomes the perfect candidate to use as a Data Transfer Object (DTO). I'm not going to explain more, you can find tons of articles out there with its benefit and code samples. However, what is missing ou...Discuss·2.5K readsJava
Thirumurthi Sthirumurthi.hashnode.dev·Oct 9, 2022Parse part of JSON string using JavaGiven a string in JSON format parse only part of the JSON using Java library without mapping to POJO's When working with JSON objects, there are possible scenarios where we only need a part of the JSON. Mostly in this scenario, we also don't want t...Discuss·250 readsjackson