jackson-databind
jackson-databind copied to clipboard
General data-binding package for Jackson (2.x): works on streaming API (core) implementation(s)
**Describe the bug** JsonNaming does not seem to be applied to Java 16 record types for deserialization. **Version information** 2.12.2 **To Reproduce** Simple unit test: ```java public class RecordTest {...
**Describe the bug** When using type id with `As.EXTERNAL_PROPERTY` together with @JsonValue inside type the serialiser omits external type id field from result when @JsonValue value is null. **Version information**...
**Describe the bug** Given a class `A`with a private field `a` that extends a class `B` with a private field `b` and both fields having the `@JsonView` annotation the annotation...
The current signature of JsonNode#deepCopy looks like this: `public abstract T deepCopy();` I wondered about the decision to do this as you can quite easily create a ClassCastException using this...
cc: @cowtowncoder I saw people using Jackson to do it, but in a not-so-efficient way: ``` MyPojo myPojo = new MyPojo(); ObjectMapper mapper = new ObjectMapper(); MyPojo newPojo = mapper.readValue(mapper.writeValueAsString(myPojo),...
**Describe the bug** `Caused by: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of `javax.mail.internet.InternetAddress` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('[email protected]')` ``` protected T...
**Describe the bug** I have encountered the issue where my custom AnnotationIntrospector method `findPropertyTypeResolver` receives `JavaType baseType` generic Object.class for generic method, meanwhile `AnnotatedMember (AnnotatedMethod::getRawReturnType())` returns correct type **Version information**...
Hello, When I try to use a `@JsonNaming` annotation on a record, I cannot unmarshall json to an object because a mapping exception occurs. I use jackson 2.12.0 with JDK...
```java public static void main(String[] args) throws JsonProcessingException { final String temp = "10"; final ObjectMapper objectMapper = new ObjectMapper(); final Object o = objectMapper.readValue(temp, Object.class); System.out.println(o instanceof Long); //...
Hi, sorry, to make an issue for such topic. I used Java microbenchmark harness to make some tests That was an object with 100 of primitive int fields and an...