From bfe43b468d8be4daee521f1f39f88e38d9352344 Mon Sep 17 00:00:00 2001 From: YuCheng Hu Date: Sun, 5 May 2024 12:32:24 -0400 Subject: [PATCH 1/3] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=A4=9A=E6=80=81?= =?UTF-8?q?=E5=8F=8D=E5=B0=84=E5=8F=8D=E5=BA=8F=E5=88=97=E5=8C=96=E7=9A=84?= =?UTF-8?q?=E6=96=87=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/compiler.xml | 1 + .idea/encodings.xml | 2 ++ jackson-modules/jackson-polymorphic-deserialization/README.md | 4 ++-- jackson-modules/jackson-polymorphic-deserialization/pom.xml | 4 ++-- jackson-modules/pom.xml | 1 + 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.idea/compiler.xml b/.idea/compiler.xml index 174882aeb4..68701c0c51 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -13,6 +13,7 @@ + diff --git a/.idea/encodings.xml b/.idea/encodings.xml index cf9744df4c..77e6029620 100644 --- a/.idea/encodings.xml +++ b/.idea/encodings.xml @@ -75,6 +75,8 @@ + + diff --git a/jackson-modules/jackson-polymorphic-deserialization/README.md b/jackson-modules/jackson-polymorphic-deserialization/README.md index a8468ab829..b9a66b23cc 100644 --- a/jackson-modules/jackson-polymorphic-deserialization/README.md +++ b/jackson-modules/jackson-polymorphic-deserialization/README.md @@ -1,2 +1,2 @@ -## Relevant Articles -- [@JsonSubTypes vs. Reflections for Polymorphic Deserialization in Jackson](https://www.baeldung.com/java-jackson-polymorphic-deserialization) +## 相关文章 +- [Jackson 中的 @JsonSubTypes 对比多态反射反序列化](https://track.ossez.com/articles/PL-A-37491939/JsonSubTypes-vs.-Reflections-for-Polymorphic-Deserialization-in-Jackson) diff --git a/jackson-modules/jackson-polymorphic-deserialization/pom.xml b/jackson-modules/jackson-polymorphic-deserialization/pom.xml index f25268d6f8..edf0d0e71b 100644 --- a/jackson-modules/jackson-polymorphic-deserialization/pom.xml +++ b/jackson-modules/jackson-polymorphic-deserialization/pom.xml @@ -7,9 +7,9 @@ jackson-polymorphic-deserialization - com.baeldung + com.ossez jackson-modules - 0.0.1-SNAPSHOT + 0.0.2-SNAPSHOT diff --git a/jackson-modules/pom.xml b/jackson-modules/pom.xml index ffd4d7ab26..c6da0ccb7c 100644 --- a/jackson-modules/pom.xml +++ b/jackson-modules/pom.xml @@ -22,6 +22,7 @@ jackson-custom-conversions jackson-exceptions jackson-jr + jackson-polymorphic-deserialization From 26215fd7afbf18609a3041abf19aa0884f3e1f51 Mon Sep 17 00:00:00 2001 From: YuCheng Hu Date: Sun, 5 May 2024 12:46:33 -0400 Subject: [PATCH 2/3] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E8=AE=BE=E7=BD=AE=E4=B8=AD=E6=9C=89=E5=85=B3=20Jackso?= =?UTF-8?q?n=20=E7=B1=BB=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jackson-modules/jackson-core/README.md | 20 --- jackson-modules/jackson-core/pom.xml | 67 ---------- .../deserialization/jacksoninject/Person.java | 43 ------ .../jsonanysetter/Inventory.java | 20 --- .../deserialization/jsondeserialize/Book.java | 75 ----------- .../CustomDateDeserializer.java | 33 ----- .../com/baeldung/jackson/domain/Person.java | 30 ----- .../baeldung/jackson/inheritance/Event.java | 25 ---- .../IgnoranceAnnotationStructure.java | 96 ------------- .../IgnoranceMixinOrIntrospection.java | 91 ------------- .../inheritance/ItemIdAddedToUser.java | 28 ---- .../inheritance/ItemIdRemovedFromUser.java | 26 ---- .../SubTypeConstructorStructure.java | 92 ------------- .../SubTypeConversionStructure.java | 87 ------------ .../TypeInfoAnnotatedStructure.java | 102 -------------- .../inheritance/TypeInfoStructure.java | 96 ------------- .../jackson/jacksonvsgson/ActorJackson.java | 61 --------- .../jacksonvsgson/ActorJacksonSerializer.java | 32 ----- .../baeldung/jackson/jacksonvsgson/Movie.java | 50 ------- .../jacksonvsgson/MovieWithNullValue.java | 46 ------- .../jackson/node/JsonNodeIterator.java | 62 --------- .../jackson/optionalwithjackson/Book.java | 25 ---- .../src/main/resources/example1.json | 12 -- .../src/main/resources/example2.json | 10 -- .../src/main/resources/logback.xml | 19 --- .../com/baeldung/jackson/dtos/Address.java | 33 ----- .../java/com/baeldung/jackson/dtos/MyDto.java | 54 -------- .../com/baeldung/jackson/dtos/Person.java | 47 ------- .../java/com/baeldung/jackson/dtos/User.java | 26 ---- .../inheritance/IgnoranceUnitTest.java | 92 ------------- .../ItemIdRemovedFromUserUnitTest.java | 41 ------ .../inheritance/SubTypeHandlingUnitTest.java | 60 --------- .../TypeInfoInclusionUnitTest.java | 67 ---------- .../JacksonDeserializeUnitTest.java | 38 ------ .../JacksonSerializeUnitTest.java | 58 -------- .../jsoncompare/JsonCompareUnitTest.java | 126 ------------------ .../jsonnode/AsTextVsAsStringTest.java | 53 -------- .../jsonnode/GetAllKeysFromJSONUnitTest.java | 85 ------------ .../jsonnode/RemoveJsonElementsUnitTest.java | 48 ------- .../jackson/node/ExampleStructure.java | 18 --- .../node/JsonNodeIteratorUnitTest.java | 37 ----- .../com/baeldung/jackson/node/NodeBean.java | 30 ----- .../jackson/node/NodeOperationUnitTest.java | 119 ----------------- .../OptionalTypeUnitTest.java | 61 --------- .../sandbox/JacksonPrettyPrintUnitTest.java | 50 ------- .../jackson/sandbox/SandboxUnitTest.java | 29 ---- .../baeldung/jackson/sandbox/TestElement.java | 25 ---- .../baeldung/jackson/test/UnitTestSuite.java | 14 -- .../com/baeldung/jackson/try1/IEntity.java | 5 - .../jackson/try1/RestLoaderRequest.java | 38 ------ .../try1/RestLoaderRequestDeserializer.java | 48 ------- .../author-jsonpropertyorder-schema.json | 29 ---- .../src/test/resources/node_example.json | 18 --- .../deserialization/reflection/Vehicle.java | 2 +- .../reflection/VehicleSubType.java | 2 +- .../typeHandlingAnnotations/Vehicle.java | 2 +- .../reflection/ReflectionUnitTest.java | 2 +- .../TypeHandlingAnnotationsUnitTest.java | 2 +- jackson-modules/jackson/README.md | 5 + .../NonAnnotatedDefaultValue.java | 2 +- .../defaultvalues/NullsSkipDefaultValue.java | 2 +- .../defaultvalues/SetterDefaultValue.java | 2 +- .../jsongeneric/JsonResponse.java | 2 +- .../deserialization/jsongeneric/User.java | 2 +- .../jackson/jsonnode/GetAllKeysFromJSON.java | 2 +- .../defaultvalues/DefaultValuesUnitTest.java | 2 +- .../GenericTypeDeserializerUnitTest.java | 2 +- .../inheritance/SubTypeHandlingUnitTest.java | 41 ++++-- .../TypeInfoInclusionUnitTest.java | 8 +- 69 files changed, 54 insertions(+), 2623 deletions(-) delete mode 100644 jackson-modules/jackson-core/README.md delete mode 100644 jackson-modules/jackson-core/pom.xml delete mode 100644 jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/deserialization/jacksoninject/Person.java delete mode 100644 jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/deserialization/jsonanysetter/Inventory.java delete mode 100644 jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/deserialization/jsondeserialize/Book.java delete mode 100644 jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/deserialization/jsondeserialize/CustomDateDeserializer.java delete mode 100644 jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/domain/Person.java delete mode 100644 jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/inheritance/Event.java delete mode 100644 jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/inheritance/IgnoranceAnnotationStructure.java delete mode 100644 jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/inheritance/IgnoranceMixinOrIntrospection.java delete mode 100644 jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/inheritance/ItemIdAddedToUser.java delete mode 100644 jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/inheritance/ItemIdRemovedFromUser.java delete mode 100644 jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/inheritance/SubTypeConstructorStructure.java delete mode 100644 jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/inheritance/SubTypeConversionStructure.java delete mode 100644 jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/inheritance/TypeInfoAnnotatedStructure.java delete mode 100644 jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/inheritance/TypeInfoStructure.java delete mode 100644 jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/jacksonvsgson/ActorJackson.java delete mode 100644 jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/jacksonvsgson/ActorJacksonSerializer.java delete mode 100644 jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/jacksonvsgson/Movie.java delete mode 100644 jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/jacksonvsgson/MovieWithNullValue.java delete mode 100644 jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/node/JsonNodeIterator.java delete mode 100644 jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/optionalwithjackson/Book.java delete mode 100644 jackson-modules/jackson-core/src/main/resources/example1.json delete mode 100644 jackson-modules/jackson-core/src/main/resources/example2.json delete mode 100644 jackson-modules/jackson-core/src/main/resources/logback.xml delete mode 100644 jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/dtos/Address.java delete mode 100644 jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/dtos/MyDto.java delete mode 100644 jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/dtos/Person.java delete mode 100644 jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/dtos/User.java delete mode 100644 jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/inheritance/IgnoranceUnitTest.java delete mode 100644 jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/inheritance/ItemIdRemovedFromUserUnitTest.java delete mode 100644 jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/inheritance/SubTypeHandlingUnitTest.java delete mode 100644 jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/inheritance/TypeInfoInclusionUnitTest.java delete mode 100644 jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/jacksonvsgson/JacksonDeserializeUnitTest.java delete mode 100644 jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/jacksonvsgson/JacksonSerializeUnitTest.java delete mode 100644 jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/jsoncompare/JsonCompareUnitTest.java delete mode 100644 jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/jsonnode/AsTextVsAsStringTest.java delete mode 100644 jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/jsonnode/GetAllKeysFromJSONUnitTest.java delete mode 100644 jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/jsonnode/RemoveJsonElementsUnitTest.java delete mode 100644 jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/node/ExampleStructure.java delete mode 100644 jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/node/JsonNodeIteratorUnitTest.java delete mode 100644 jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/node/NodeBean.java delete mode 100644 jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/node/NodeOperationUnitTest.java delete mode 100644 jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/optionalwithjackson/OptionalTypeUnitTest.java delete mode 100644 jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/sandbox/JacksonPrettyPrintUnitTest.java delete mode 100644 jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/sandbox/SandboxUnitTest.java delete mode 100644 jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/sandbox/TestElement.java delete mode 100644 jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/test/UnitTestSuite.java delete mode 100644 jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/try1/IEntity.java delete mode 100644 jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/try1/RestLoaderRequest.java delete mode 100644 jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/try1/RestLoaderRequestDeserializer.java delete mode 100644 jackson-modules/jackson-core/src/test/resources/author-jsonpropertyorder-schema.json delete mode 100644 jackson-modules/jackson-core/src/test/resources/node_example.json rename jackson-modules/jackson-polymorphic-deserialization/src/main/java/com/{baeldung => ossez}/jackson/polymorphic/deserialization/reflection/Vehicle.java (93%) rename jackson-modules/jackson-polymorphic-deserialization/src/main/java/com/{baeldung => ossez}/jackson/polymorphic/deserialization/reflection/VehicleSubType.java (80%) rename jackson-modules/jackson-polymorphic-deserialization/src/main/java/com/{baeldung => ossez}/jackson/polymorphic/deserialization/typeHandlingAnnotations/Vehicle.java (95%) rename jackson-modules/jackson-polymorphic-deserialization/src/test/java/com/{baeldung => ossez}/jackson/polymorphic/deserialization/reflection/ReflectionUnitTest.java (95%) rename jackson-modules/jackson-polymorphic-deserialization/src/test/java/com/{baeldung => ossez}/jackson/polymorphic/deserialization/typeHandlingAnnotations/TypeHandlingAnnotationsUnitTest.java (88%) rename jackson-modules/{jackson-core/src/main/java/com/baeldung => jackson/src/main/java/com/ossez}/jackson/defaultvalues/NonAnnotatedDefaultValue.java (90%) rename jackson-modules/{jackson-core/src/main/java/com/baeldung => jackson/src/main/java/com/ossez}/jackson/defaultvalues/NullsSkipDefaultValue.java (93%) rename jackson-modules/{jackson-core/src/main/java/com/baeldung => jackson/src/main/java/com/ossez}/jackson/defaultvalues/SetterDefaultValue.java (92%) rename jackson-modules/{jackson-core/src/main/java/com/baeldung => jackson/src/main/java/com/ossez}/jackson/deserialization/jsongeneric/JsonResponse.java (76%) rename jackson-modules/{jackson-core/src/main/java/com/baeldung => jackson/src/main/java/com/ossez}/jackson/deserialization/jsongeneric/User.java (90%) rename jackson-modules/{jackson-core/src/main/java/com/baeldung => jackson/src/main/java/com/ossez}/jackson/jsonnode/GetAllKeysFromJSON.java (99%) rename jackson-modules/{jackson-core/src/test/java/com/baeldung => jackson/src/test/java/com/ossez}/jackson/defaultvalues/DefaultValuesUnitTest.java (97%) rename jackson-modules/{jackson-core/src/test/java/com/baeldung => jackson/src/test/java/com/ossez}/jackson/deserialization/jsongeneric/GenericTypeDeserializerUnitTest.java (96%) diff --git a/jackson-modules/jackson-core/README.md b/jackson-modules/jackson-core/README.md deleted file mode 100644 index 5706acec0a..0000000000 --- a/jackson-modules/jackson-core/README.md +++ /dev/null @@ -1,20 +0,0 @@ -## Jackson Cookbooks and Examples - -This module contains articles about Jackson. - -### The Course - -The "REST With Spring" Classes: http://bit.ly/restwithspring - -### Relevant Articles: - -- [Using Optional with Jackson](https://www.baeldung.com/jackson-optional) -- [Compare Two JSON Objects with Jackson](https://www.baeldung.com/jackson-compare-two-json-objects) -- [Jackson vs Gson](https://www.baeldung.com/jackson-vs-gson) -- [Inheritance with Jackson](https://www.baeldung.com/jackson-inheritance) -- [Working with Tree Model Nodes in Jackson](https://www.baeldung.com/jackson-json-node-tree-model) -- [Get all the Keys in a JSON String Using JsonNode](https://www.baeldung.com/java-jsonnode-get-keys) -- [Difference Between asText() and toString() in JsonNode](https://www.baeldung.com/java-jsonnode-astext-vs-tostring) -- [Deserialize Generic Type with Jackson](https://www.baeldung.com/java-deserialize-generic-type-with-jackson) -- [Setting Default Values to Null Fields in Jackson Mapping](https://www.baeldung.com/java-jackson-mapping-default-values-null-fields) -- [Removing JSON Elements With Jackson](https://www.baeldung.com/java-jackson-remove-json-elements) diff --git a/jackson-modules/jackson-core/pom.xml b/jackson-modules/jackson-core/pom.xml deleted file mode 100644 index 9fd0cc4ac4..0000000000 --- a/jackson-modules/jackson-core/pom.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - 4.0.0 - jackson-core - jackson-core - - - com.baeldung - jackson-modules - 0.0.1-SNAPSHOT - - - - - - com.fasterxml.jackson.datatype - jackson-datatype-jsr310 - ${jackson.version} - - - com.fasterxml.jackson.datatype - jackson-datatype-joda - ${jackson.version} - - - com.fasterxml.jackson.module - jackson-module-jsonSchema - ${jackson.version} - - - com.fasterxml.jackson.datatype - jackson-datatype-jdk8 - ${jackson.version} - - - - io.rest-assured - json-schema-validator - ${rest-assured.version} - test - - - io.rest-assured - json-path - ${rest-assured.version} - test - - - - - jackson-core - - - src/main/resources - true - - - - - - - 5.4.0 - - - \ No newline at end of file diff --git a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/deserialization/jacksoninject/Person.java b/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/deserialization/jacksoninject/Person.java deleted file mode 100644 index 9ba91e9170..0000000000 --- a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/deserialization/jacksoninject/Person.java +++ /dev/null @@ -1,43 +0,0 @@ -package com.baeldung.jackson.deserialization.jacksoninject; - -import com.fasterxml.jackson.annotation.JacksonInject; - -import java.util.UUID; - -public class Person { - - @JacksonInject - private UUID id; - private String firstName; - private String lastName; - - public Person() { - - } - - public Person(String firstName, String lastName) { - this.id = UUID.randomUUID(); - this.firstName = firstName; - this.lastName = lastName; - } - - public String getFirstName() { - return firstName; - } - - public void setFirstName(String firstName) { - this.firstName = firstName; - } - - public String getLastName() { - return lastName; - } - - public void setLastName(String lastName) { - this.lastName = lastName; - } - - public UUID getId() { - return id; - } -} diff --git a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/deserialization/jsonanysetter/Inventory.java b/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/deserialization/jsonanysetter/Inventory.java deleted file mode 100644 index d9748e2997..0000000000 --- a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/deserialization/jsonanysetter/Inventory.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.baeldung.jackson.deserialization.jsonanysetter; - -import java.util.HashMap; -import java.util.Map; - -import com.fasterxml.jackson.annotation.JsonAnySetter; - -public class Inventory { - - private Map countryDeliveryCost = new HashMap<>(); - - public Map getCountryDeliveryCost() { - return countryDeliveryCost; - } - - @JsonAnySetter - public void addCountryDeliveryCost(String country, Float cost) { - countryDeliveryCost.put(country, cost); - } -} diff --git a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/deserialization/jsondeserialize/Book.java b/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/deserialization/jsondeserialize/Book.java deleted file mode 100644 index 1e411da64e..0000000000 --- a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/deserialization/jsondeserialize/Book.java +++ /dev/null @@ -1,75 +0,0 @@ -package com.baeldung.jackson.deserialization.jsondeserialize; - -import java.math.BigDecimal; -import java.util.Date; -import java.util.UUID; - -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; - -public class Book { - - private UUID id; - private String title; - private float price; - private String ISBN; - - @JsonDeserialize(using = CustomDateDeserializer.class) - private Date published; - private BigDecimal pages; - - public Book() { - } - - public Book(String title) { - this.id = UUID.randomUUID(); - this.title = title; - } - - public String getISBN() { - return ISBN; - } - - public void setISBN(String ISBN) { - this.ISBN = ISBN; - } - - public Date getPublished() { - return published; - } - - public void setPublished(Date published) { - this.published = published; - } - - public BigDecimal getPages() { - return pages; - } - - public void setPages(BigDecimal pages) { - this.pages = pages; - } - - public UUID getId() { - return id; - } - - public void setId(UUID id) { - this.id = id; - } - - public String getTitle() { - return title; - } - - public void setTitle(String title) { - this.title = title; - } - - public float getPrice() { - return price; - } - - public void setPrice(float price) { - this.price = price; - } -} diff --git a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/deserialization/jsondeserialize/CustomDateDeserializer.java b/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/deserialization/jsondeserialize/CustomDateDeserializer.java deleted file mode 100644 index 93bbfd0069..0000000000 --- a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/deserialization/jsondeserialize/CustomDateDeserializer.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.baeldung.jackson.deserialization.jsondeserialize; - -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; - -import java.io.IOException; -import java.text.ParseException; -import java.text.SimpleDateFormat; -import java.util.Date; - -public class CustomDateDeserializer extends StdDeserializer { - - private static SimpleDateFormat formatter = new SimpleDateFormat("dd-MM-yyyy HH:mm:ss"); - - public CustomDateDeserializer() { - this(null); - } - - public CustomDateDeserializer(Class vc) { - super(vc); - } - - @Override - public Date deserialize(JsonParser jsonparser, DeserializationContext context) throws IOException { - String date = jsonparser.getText(); - try { - return formatter.parse(date); - } catch (ParseException e) { - throw new RuntimeException(e); - } - } -} diff --git a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/domain/Person.java b/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/domain/Person.java deleted file mode 100644 index f11ba41113..0000000000 --- a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/domain/Person.java +++ /dev/null @@ -1,30 +0,0 @@ -package com.baeldung.jackson.domain; - -public class Person { - - private String firstName; - private String lastName; - - public Person(String firstName, String lastName) { - super(); - this.firstName = firstName; - this.lastName = lastName; - } - - public String getFirstName() { - return firstName; - } - - public void setFirstName(String firstName) { - this.firstName = firstName; - } - - public String getLastName() { - return lastName; - } - - public void setLastName(String lastName) { - this.lastName = lastName; - } -} - diff --git a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/inheritance/Event.java b/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/inheritance/Event.java deleted file mode 100644 index 797bde98b2..0000000000 --- a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/inheritance/Event.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.baeldung.jackson.inheritance; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeInfo; - -@JsonTypeInfo(use = JsonTypeInfo.Id.MINIMAL_CLASS, include = JsonTypeInfo.As.PROPERTY, property = "eventType") -abstract public class Event { - private final String id; - private final Long timestamp; - - @JsonCreator - public Event(@JsonProperty("id") String id, @JsonProperty("timestamp") Long timestamp) { - this.id = id; - this.timestamp = timestamp; - } - - public Long getTimestamp() { - return timestamp; - } - - public String getId() { - return id; - } -} \ No newline at end of file diff --git a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/inheritance/IgnoranceAnnotationStructure.java b/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/inheritance/IgnoranceAnnotationStructure.java deleted file mode 100644 index 520929463c..0000000000 --- a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/inheritance/IgnoranceAnnotationStructure.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.baeldung.jackson.inheritance; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; - -public class IgnoranceAnnotationStructure { - public static abstract class Vehicle { - private String make; - private String model; - - protected Vehicle() { - } - - protected Vehicle(String make, String model) { - this.make = make; - this.model = model; - } - - public String getMake() { - return make; - } - - public void setMake(String make) { - this.make = make; - } - - public String getModel() { - return model; - } - - public void setModel(String model) { - this.model = model; - } - } - - @JsonIgnoreProperties({ "model", "seatingCapacity" }) - public static abstract class Car extends Vehicle { - private int seatingCapacity; - @JsonIgnore - private double topSpeed; - - protected Car() { - } - - protected Car(String make, String model, int seatingCapacity, double topSpeed) { - super(make, model); - this.seatingCapacity = seatingCapacity; - this.topSpeed = topSpeed; - } - - public int getSeatingCapacity() { - return seatingCapacity; - } - - public void setSeatingCapacity(int seatingCapacity) { - this.seatingCapacity = seatingCapacity; - } - - public double getTopSpeed() { - return topSpeed; - } - - public void setTopSpeed(double topSpeed) { - this.topSpeed = topSpeed; - } - } - - public static class Sedan extends Car { - public Sedan() { - } - - public Sedan(String make, String model, int seatingCapacity, double topSpeed) { - super(make, model, seatingCapacity, topSpeed); - } - } - - public static class Crossover extends Car { - private double towingCapacity; - - public Crossover() { - } - - public Crossover(String make, String model, int seatingCapacity, double topSpeed, double towingCapacity) { - super(make, model, seatingCapacity, topSpeed); - this.towingCapacity = towingCapacity; - } - - public double getTowingCapacity() { - return towingCapacity; - } - - public void setTowingCapacity(double towingCapacity) { - this.towingCapacity = towingCapacity; - } - } -} \ No newline at end of file diff --git a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/inheritance/IgnoranceMixinOrIntrospection.java b/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/inheritance/IgnoranceMixinOrIntrospection.java deleted file mode 100644 index 52c0bbea5e..0000000000 --- a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/inheritance/IgnoranceMixinOrIntrospection.java +++ /dev/null @@ -1,91 +0,0 @@ -package com.baeldung.jackson.inheritance; - -public class IgnoranceMixinOrIntrospection { - public static abstract class Vehicle { - private String make; - private String model; - - protected Vehicle() { - } - - protected Vehicle(String make, String model) { - this.make = make; - this.model = model; - } - - public String getMake() { - return make; - } - - public void setMake(String make) { - this.make = make; - } - - public String getModel() { - return model; - } - - public void setModel(String model) { - this.model = model; - } - } - - public static abstract class Car extends Vehicle { - private int seatingCapacity; - private double topSpeed; - - protected Car() { - } - - protected Car(String make, String model, int seatingCapacity, double topSpeed) { - super(make, model); - this.seatingCapacity = seatingCapacity; - this.topSpeed = topSpeed; - } - - public int getSeatingCapacity() { - return seatingCapacity; - } - - public void setSeatingCapacity(int seatingCapacity) { - this.seatingCapacity = seatingCapacity; - } - - public double getTopSpeed() { - return topSpeed; - } - - public void setTopSpeed(double topSpeed) { - this.topSpeed = topSpeed; - } - } - - public static class Sedan extends Car { - public Sedan() { - } - - public Sedan(String make, String model, int seatingCapacity, double topSpeed) { - super(make, model, seatingCapacity, topSpeed); - } - } - - public static class Crossover extends Car { - private double towingCapacity; - - public Crossover() { - } - - public Crossover(String make, String model, int seatingCapacity, double topSpeed, double towingCapacity) { - super(make, model, seatingCapacity, topSpeed); - this.towingCapacity = towingCapacity; - } - - public double getTowingCapacity() { - return towingCapacity; - } - - public void setTowingCapacity(double towingCapacity) { - this.towingCapacity = towingCapacity; - } - } -} \ No newline at end of file diff --git a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/inheritance/ItemIdAddedToUser.java b/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/inheritance/ItemIdAddedToUser.java deleted file mode 100644 index db0412b09b..0000000000 --- a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/inheritance/ItemIdAddedToUser.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.baeldung.jackson.inheritance; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeName; - -@JsonTypeName("itemIdAddedToUser") -@JsonIgnoreProperties("id") -public class ItemIdAddedToUser extends Event { - private final String itemId; - private final Long quantity; - - @JsonCreator - public ItemIdAddedToUser(@JsonProperty("id") String id, @JsonProperty("timestamp") Long timestamp, @JsonProperty("itemId") String itemId, @JsonProperty("quantity") Long quantity) { - super(id, timestamp); - this.itemId = itemId; - this.quantity = quantity; - } - - public String getItemId() { - return itemId; - } - - public Long getQuantity() { - return quantity; - } -} \ No newline at end of file diff --git a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/inheritance/ItemIdRemovedFromUser.java b/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/inheritance/ItemIdRemovedFromUser.java deleted file mode 100644 index ab3b9bf34f..0000000000 --- a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/inheritance/ItemIdRemovedFromUser.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.baeldung.jackson.inheritance; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonTypeName; - -@JsonTypeName("itemIdRemovedFromUser") -public class ItemIdRemovedFromUser extends Event { - private final String itemId; - private final Long quantity; - - @JsonCreator - public ItemIdRemovedFromUser(@JsonProperty("id") String id, @JsonProperty("timestamp") Long timestamp, @JsonProperty("itemId") String itemId, @JsonProperty("quantity") Long quantity) { - super(id, timestamp); - this.itemId = itemId; - this.quantity = quantity; - } - - public String getItemId() { - return itemId; - } - - public Long getQuantity() { - return quantity; - } -} \ No newline at end of file diff --git a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/inheritance/SubTypeConstructorStructure.java b/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/inheritance/SubTypeConstructorStructure.java deleted file mode 100644 index 8a8db8ae47..0000000000 --- a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/inheritance/SubTypeConstructorStructure.java +++ /dev/null @@ -1,92 +0,0 @@ -package com.baeldung.jackson.inheritance; - -import java.util.List; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonProperty; - -public class SubTypeConstructorStructure { - public static class Fleet { - private List vehicles; - - public List getVehicles() { - return vehicles; - } - - public void setVehicles(List vehicles) { - this.vehicles = vehicles; - } - } - - public static abstract class Vehicle { - private String make; - private String model; - - protected Vehicle(String make, String model) { - this.make = make; - this.model = model; - } - - public String getMake() { - return make; - } - - public void setMake(String make) { - this.make = make; - } - - public String getModel() { - return model; - } - - public void setModel(String model) { - this.model = model; - } - } - - public static class Car extends Vehicle { - private int seatingCapacity; - private double topSpeed; - - @JsonCreator - public Car(@JsonProperty("make") String make, @JsonProperty("model") String model, @JsonProperty("seating") int seatingCapacity, @JsonProperty("topSpeed") double topSpeed) { - super(make, model); - this.seatingCapacity = seatingCapacity; - this.topSpeed = topSpeed; - } - - public int getSeatingCapacity() { - return seatingCapacity; - } - - public void setSeatingCapacity(int seatingCapacity) { - this.seatingCapacity = seatingCapacity; - } - - public double getTopSpeed() { - return topSpeed; - } - - public void setTopSpeed(double topSpeed) { - this.topSpeed = topSpeed; - } - } - - public static class Truck extends Vehicle { - private double payloadCapacity; - - @JsonCreator - public Truck(@JsonProperty("make") String make, @JsonProperty("model") String model, @JsonProperty("payload") double payloadCapacity) { - super(make, model); - this.payloadCapacity = payloadCapacity; - } - - public double getPayloadCapacity() { - return payloadCapacity; - } - - public void setPayloadCapacity(double payloadCapacity) { - this.payloadCapacity = payloadCapacity; - } - } -} \ No newline at end of file diff --git a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/inheritance/SubTypeConversionStructure.java b/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/inheritance/SubTypeConversionStructure.java deleted file mode 100644 index 346fd65eef..0000000000 --- a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/inheritance/SubTypeConversionStructure.java +++ /dev/null @@ -1,87 +0,0 @@ -package com.baeldung.jackson.inheritance; - -import com.fasterxml.jackson.annotation.JsonIgnore; - -public class SubTypeConversionStructure { - public static abstract class Vehicle { - private String make; - private String model; - - protected Vehicle() { - } - - protected Vehicle(String make, String model) { - this.make = make; - this.model = model; - } - - public String getMake() { - return make; - } - - public void setMake(String make) { - this.make = make; - } - - public String getModel() { - return model; - } - - public void setModel(String model) { - this.model = model; - } - } - - public static class Car extends Vehicle { - @JsonIgnore - private int seatingCapacity; - @JsonIgnore - private double topSpeed; - - public Car() { - } - - public Car(String make, String model, int seatingCapacity, double topSpeed) { - super(make, model); - this.seatingCapacity = seatingCapacity; - this.topSpeed = topSpeed; - } - - public int getSeatingCapacity() { - return seatingCapacity; - } - - public void setSeatingCapacity(int seatingCapacity) { - this.seatingCapacity = seatingCapacity; - } - - public double getTopSpeed() { - return topSpeed; - } - - public void setTopSpeed(double topSpeed) { - this.topSpeed = topSpeed; - } - } - - public static class Truck extends Vehicle { - @JsonIgnore - private double payloadCapacity; - - public Truck() { - } - - public Truck(String make, String model, double payloadCapacity) { - super(make, model); - this.payloadCapacity = payloadCapacity; - } - - public double getPayloadCapacity() { - return payloadCapacity; - } - - public void setPayloadCapacity(double payloadCapacity) { - this.payloadCapacity = payloadCapacity; - } - } -} \ No newline at end of file diff --git a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/inheritance/TypeInfoAnnotatedStructure.java b/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/inheritance/TypeInfoAnnotatedStructure.java deleted file mode 100644 index cb552a7b80..0000000000 --- a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/inheritance/TypeInfoAnnotatedStructure.java +++ /dev/null @@ -1,102 +0,0 @@ -package com.baeldung.jackson.inheritance; - -import java.util.List; - -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonSubTypes; -import com.fasterxml.jackson.annotation.JsonSubTypes.Type; - -public class TypeInfoAnnotatedStructure { - public static class Fleet { - private List vehicles; - - public List getVehicles() { - return vehicles; - } - - public void setVehicles(List vehicles) { - this.vehicles = vehicles; - } - } - - @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type") - @JsonSubTypes({ @Type(value = Car.class, name = "car"), @Type(value = Truck.class, name = "truck") }) - public static abstract class Vehicle { - private String make; - private String model; - - protected Vehicle() { - } - - protected Vehicle(String make, String model) { - this.make = make; - this.model = model; - } - - public String getMake() { - return make; - } - - public void setMake(String make) { - this.make = make; - } - - public String getModel() { - return model; - } - - public void setModel(String model) { - this.model = model; - } - } - - public static class Car extends Vehicle { - private int seatingCapacity; - private double topSpeed; - - public Car() { - } - - public Car(String make, String model, int seatingCapacity, double topSpeed) { - super(make, model); - this.seatingCapacity = seatingCapacity; - this.topSpeed = topSpeed; - } - - public int getSeatingCapacity() { - return seatingCapacity; - } - - public void setSeatingCapacity(int seatingCapacity) { - this.seatingCapacity = seatingCapacity; - } - - public double getTopSpeed() { - return topSpeed; - } - - public void setTopSpeed(double topSpeed) { - this.topSpeed = topSpeed; - } - } - - public static class Truck extends Vehicle { - private double payloadCapacity; - - public Truck() { - } - - public Truck(String make, String model, double payloadCapacity) { - super(make, model); - this.payloadCapacity = payloadCapacity; - } - - public double getPayloadCapacity() { - return payloadCapacity; - } - - public void setPayloadCapacity(double payloadCapacity) { - this.payloadCapacity = payloadCapacity; - } - } -} \ No newline at end of file diff --git a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/inheritance/TypeInfoStructure.java b/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/inheritance/TypeInfoStructure.java deleted file mode 100644 index 5c5186dfcc..0000000000 --- a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/inheritance/TypeInfoStructure.java +++ /dev/null @@ -1,96 +0,0 @@ -package com.baeldung.jackson.inheritance; - -import java.util.List; - -public class TypeInfoStructure { - public static class Fleet { - private List vehicles; - - public List getVehicles() { - return vehicles; - } - - public void setVehicles(List vehicles) { - this.vehicles = vehicles; - } - } - - public static abstract class Vehicle { - private String make; - private String model; - - protected Vehicle() { - } - - protected Vehicle(String make, String model) { - this.make = make; - this.model = model; - } - - public String getMake() { - return make; - } - - public void setMake(String make) { - this.make = make; - } - - public String getModel() { - return model; - } - - public void setModel(String model) { - this.model = model; - } - } - - public static class Car extends Vehicle { - private int seatingCapacity; - private double topSpeed; - - public Car() { - } - - public Car(String make, String model, int seatingCapacity, double topSpeed) { - super(make, model); - this.seatingCapacity = seatingCapacity; - this.topSpeed = topSpeed; - } - - public int getSeatingCapacity() { - return seatingCapacity; - } - - public void setSeatingCapacity(int seatingCapacity) { - this.seatingCapacity = seatingCapacity; - } - - public double getTopSpeed() { - return topSpeed; - } - - public void setTopSpeed(double topSpeed) { - this.topSpeed = topSpeed; - } - } - - public static class Truck extends Vehicle { - private double payloadCapacity; - - public Truck() { - } - - public Truck(String make, String model, double payloadCapacity) { - super(make, model); - this.payloadCapacity = payloadCapacity; - } - - public double getPayloadCapacity() { - return payloadCapacity; - } - - public void setPayloadCapacity(double payloadCapacity) { - this.payloadCapacity = payloadCapacity; - } - } -} \ No newline at end of file diff --git a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/jacksonvsgson/ActorJackson.java b/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/jacksonvsgson/ActorJackson.java deleted file mode 100644 index b4b6d99447..0000000000 --- a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/jacksonvsgson/ActorJackson.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.baeldung.jackson.jacksonvsgson; - -import java.text.DateFormat; -import java.text.SimpleDateFormat; -import java.util.Date; -import java.util.List; -import java.util.Locale; -import java.util.TimeZone; - -public class ActorJackson { - - private String imdbId; - private Date dateOfBirth; - private List filmography; - - public ActorJackson() { - super(); - } - - public ActorJackson(String imdbId, Date dateOfBirth, List filmography) { - super(); - this.imdbId = imdbId; - this.dateOfBirth = dateOfBirth; - this.filmography = filmography; - } - - @Override - public String toString() { - return "ActorJackson [imdbId=" + imdbId + ", dateOfBirth=" + formatDateOfBirth() + ", filmography=" + filmography + "]"; - } - - public String getImdbId() { - return imdbId; - } - - public void setImdbId(String imdbId) { - this.imdbId = imdbId; - } - - public Date getDateOfBirth() { - return dateOfBirth; - } - - public void setDateOfBirth(Date dateOfBirth) { - this.dateOfBirth = dateOfBirth; - } - - public List getFilmography() { - return filmography; - } - - public void setFilmography(List filmography) { - this.filmography = filmography; - } - - private String formatDateOfBirth() { - final DateFormat formatter = new SimpleDateFormat("EEE MMM dd hh:mm:ss zzz yyyy", Locale.US); - formatter.setTimeZone(TimeZone.getTimeZone("GMT")); - return formatter.format(dateOfBirth); - } -} diff --git a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/jacksonvsgson/ActorJacksonSerializer.java b/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/jacksonvsgson/ActorJacksonSerializer.java deleted file mode 100644 index 837c837cf5..0000000000 --- a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/jacksonvsgson/ActorJacksonSerializer.java +++ /dev/null @@ -1,32 +0,0 @@ -package com.baeldung.jackson.jacksonvsgson; - -import java.io.IOException; -import java.text.SimpleDateFormat; -import java.util.stream.Collectors; - -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; - -public class ActorJacksonSerializer extends StdSerializer { - - private SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yyyy"); - - public ActorJacksonSerializer(Class t) { - super(t); - } - - @Override - public void serialize(ActorJackson actor, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException { - - jsonGenerator.writeStartObject(); - jsonGenerator.writeStringField("imdbId", actor.getImdbId()); - jsonGenerator.writeObjectField("dateOfBirth", actor.getDateOfBirth() != null ? sdf.format(actor.getDateOfBirth()) : null); - jsonGenerator.writeNumberField("N° Film: ", actor.getFilmography() != null ? actor.getFilmography() - .size() : null); - jsonGenerator.writeStringField("filmography", actor.getFilmography() - .stream() - .collect(Collectors.joining("-"))); - jsonGenerator.writeEndObject(); - } -} \ No newline at end of file diff --git a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/jacksonvsgson/Movie.java b/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/jacksonvsgson/Movie.java deleted file mode 100644 index 070d1bc2d4..0000000000 --- a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/jacksonvsgson/Movie.java +++ /dev/null @@ -1,50 +0,0 @@ -package com.baeldung.jackson.jacksonvsgson; - -import java.util.List; - -public class Movie { - - private String imdbId; - private String director; - private List actors; - - public Movie(String imdbId, String director, List actors) { - super(); - this.imdbId = imdbId; - this.director = director; - this.actors = actors; - } - - public Movie() { - super(); - } - - @Override - public String toString() { - return "Movie [imdbId=" + imdbId + ", director=" + director + ", actors=" + actors + "]"; - } - - public String getImdbId() { - return imdbId; - } - - public void setImdbId(String imdbId) { - this.imdbId = imdbId; - } - - public String getDirector() { - return director; - } - - public void setDirector(String director) { - this.director = director; - } - - public List getActors() { - return actors; - } - - public void setActors(List actors) { - this.actors = actors; - } -} \ No newline at end of file diff --git a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/jacksonvsgson/MovieWithNullValue.java b/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/jacksonvsgson/MovieWithNullValue.java deleted file mode 100644 index a0b013cfc3..0000000000 --- a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/jacksonvsgson/MovieWithNullValue.java +++ /dev/null @@ -1,46 +0,0 @@ -package com.baeldung.jackson.jacksonvsgson; - -import com.fasterxml.jackson.annotation.JsonIgnore; - -import java.util.List; - -public class MovieWithNullValue { - - private String imdbId; - - @JsonIgnore - private String director; - - private List actors; - - public MovieWithNullValue(String imdbID, String director, List actors) { - super(); - this.imdbId = imdbID; - this.director = director; - this.actors = actors; - } - - public String getImdbID() { - return imdbId; - } - - public void setImdbID(String imdbID) { - this.imdbId = imdbID; - } - - public String getDirector() { - return director; - } - - public void setDirector(String director) { - this.director = director; - } - - public List getActors() { - return actors; - } - - public void setActors(List actors) { - this.actors = actors; - } -} \ No newline at end of file diff --git a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/node/JsonNodeIterator.java b/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/node/JsonNodeIterator.java deleted file mode 100644 index dc1aa35aec..0000000000 --- a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/node/JsonNodeIterator.java +++ /dev/null @@ -1,62 +0,0 @@ -package com.baeldung.jackson.node; - -import java.util.Iterator; -import java.util.Map.Entry; - -import com.fasterxml.jackson.databind.JsonNode; - -public class JsonNodeIterator { - - private static final String NEW_LINE = "\n"; - private static final String FIELD_DELIMITER = ": "; - private static final String ARRAY_PREFIX = "- "; - private static final String YAML_PREFIX = " "; - - public String toYaml(JsonNode root) { - StringBuilder yaml = new StringBuilder(); - processNode(root, yaml, 0); - return yaml.toString(); - } - - private void processNode(JsonNode jsonNode, StringBuilder yaml, int depth) { - if (jsonNode.isValueNode()) { - yaml.append(jsonNode.asText()); - } - else if (jsonNode.isArray()) { - for (JsonNode arrayItem : jsonNode) { - appendNodeToYaml(arrayItem, yaml, depth, true); - } - } - else if (jsonNode.isObject()) { - appendNodeToYaml(jsonNode, yaml, depth, false); - } - } - - private void appendNodeToYaml(JsonNode node, StringBuilder yaml, int depth, boolean isArrayItem) { - Iterator> fields = node.fields(); - boolean isFirst = true; - while (fields.hasNext()) { - Entry jsonField = fields.next(); - addFieldNameToYaml(yaml, jsonField.getKey(), depth, isArrayItem && isFirst); - processNode(jsonField.getValue(), yaml, depth+1); - isFirst = false; - } - - } - - private void addFieldNameToYaml(StringBuilder yaml, String fieldName, int depth, boolean isFirstInArray) { - if (yaml.length()>0) { - yaml.append(NEW_LINE); - int requiredDepth = (isFirstInArray) ? depth-1 : depth; - for(int i = 0; i < requiredDepth; i++) { - yaml.append(YAML_PREFIX); - } - if (isFirstInArray) { - yaml.append(ARRAY_PREFIX); - } - } - yaml.append(fieldName); - yaml.append(FIELD_DELIMITER); - } - -} diff --git a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/optionalwithjackson/Book.java b/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/optionalwithjackson/Book.java deleted file mode 100644 index 5b83b7efc3..0000000000 --- a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/optionalwithjackson/Book.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.baeldung.jackson.optionalwithjackson; - -import java.util.Optional; - -public class Book { - - private String title; - private Optional subTitle; - - public String getTitle() { - return title; - } - - public void setTitle(String title) { - this.title = title; - } - - public Optional getSubTitle() { - return subTitle; - } - - public void setSubTitle(Optional subTitle) { - this.subTitle = subTitle; - } -} diff --git a/jackson-modules/jackson-core/src/main/resources/example1.json b/jackson-modules/jackson-core/src/main/resources/example1.json deleted file mode 100644 index 46d2982cec..0000000000 --- a/jackson-modules/jackson-core/src/main/resources/example1.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "collection": [ - { - "name": "Test order1", - "detail": "ahk ks" - }, - { - "name": "Test order2", - "detail": "Fisteku" - } - ] -} \ No newline at end of file diff --git a/jackson-modules/jackson-core/src/main/resources/example2.json b/jackson-modules/jackson-core/src/main/resources/example2.json deleted file mode 100644 index f4433731e6..0000000000 --- a/jackson-modules/jackson-core/src/main/resources/example2.json +++ /dev/null @@ -1,10 +0,0 @@ -[ - { - "name": "Test order1", - "detail": "ahk ks" - }, - { - "name": "Test order2", - "detail": "Fisteku" - } -] \ No newline at end of file diff --git a/jackson-modules/jackson-core/src/main/resources/logback.xml b/jackson-modules/jackson-core/src/main/resources/logback.xml deleted file mode 100644 index 56af2d397e..0000000000 --- a/jackson-modules/jackson-core/src/main/resources/logback.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n - - - - - - - - - - - - - - \ No newline at end of file diff --git a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/dtos/Address.java b/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/dtos/Address.java deleted file mode 100644 index 985851f456..0000000000 --- a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/dtos/Address.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.baeldung.jackson.dtos; - -public class Address { - - String streetNumber; - String streetName; - String city; - - public String getStreetNumber() { - return streetNumber; - } - - public void setStreetNumber(String streetNumber) { - this.streetNumber = streetNumber; - } - - public String getStreetName() { - return streetName; - } - - public void setStreetName(String streetName) { - this.streetName = streetName; - } - - public String getCity() { - return city; - } - - public void setCity(String city) { - this.city = city; - } - -} diff --git a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/dtos/MyDto.java b/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/dtos/MyDto.java deleted file mode 100644 index 49cf07baea..0000000000 --- a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/dtos/MyDto.java +++ /dev/null @@ -1,54 +0,0 @@ -package com.baeldung.jackson.dtos; - -public class MyDto { - - private String stringValue; - private int intValue; - private boolean booleanValue; - - public MyDto() { - super(); - } - - public MyDto(final String stringValue, final int intValue, final boolean booleanValue) { - super(); - - this.stringValue = stringValue; - this.intValue = intValue; - this.booleanValue = booleanValue; - } - - // API - - public String getStringValue() { - return stringValue; - } - - public void setStringValue(final String stringValue) { - this.stringValue = stringValue; - } - - public int getIntValue() { - return intValue; - } - - public void setIntValue(final int intValue) { - this.intValue = intValue; - } - - public boolean isBooleanValue() { - return booleanValue; - } - - public void setBooleanValue(final boolean booleanValue) { - this.booleanValue = booleanValue; - } - - // - - @Override - public String toString() { - return "MyDto [stringValue=" + stringValue + ", intValue=" + intValue + ", booleanValue=" + booleanValue + "]"; - } - -} diff --git a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/dtos/Person.java b/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/dtos/Person.java deleted file mode 100644 index 13093cdcad..0000000000 --- a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/dtos/Person.java +++ /dev/null @@ -1,47 +0,0 @@ -package com.baeldung.jackson.dtos; - -import java.util.ArrayList; -import java.util.List; - -import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement; - -@JacksonXmlRootElement(localName = "person") -public final class Person { - private String firstName; - private String lastName; - private List phoneNumbers = new ArrayList<>(); - private List
address = new ArrayList<>(); - - public List
getAddress() { - return address; - } - - public void setAddress(List
address) { - this.address = address; - } - - public String getFirstName() { - return firstName; - } - - public void setFirstName(String firstName) { - this.firstName = firstName; - } - - public String getLastName() { - return lastName; - } - - public void setLastName(String lastName) { - this.lastName = lastName; - } - - public List getPhoneNumbers() { - return phoneNumbers; - } - - public void setPhoneNumbers(List phoneNumbers) { - this.phoneNumbers = phoneNumbers; - } - -} \ No newline at end of file diff --git a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/dtos/User.java b/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/dtos/User.java deleted file mode 100644 index 2418e8070d..0000000000 --- a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/dtos/User.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.baeldung.jackson.dtos; - -public class User { - public int id; - public String name; - - public User() { - super(); - } - - public User(final int id, final String name) { - this.id = id; - this.name = name; - } - - // API - - public int getId() { - return id; - } - - public String getName() { - return name; - } - -} \ No newline at end of file diff --git a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/inheritance/IgnoranceUnitTest.java b/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/inheritance/IgnoranceUnitTest.java deleted file mode 100644 index e365b560e2..0000000000 --- a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/inheritance/IgnoranceUnitTest.java +++ /dev/null @@ -1,92 +0,0 @@ -package com.baeldung.jackson.inheritance; - -import static org.junit.Assert.assertThat; -import static org.hamcrest.CoreMatchers.containsString; -import static org.hamcrest.CoreMatchers.not; - -import org.junit.Test; - -import java.util.List; -import java.util.ArrayList; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.fasterxml.jackson.databind.introspect.AnnotatedMember; -import com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector; - -public class IgnoranceUnitTest { - private static abstract class CarMixIn { - @JsonIgnore - public String make; - @JsonIgnore - public String topSpeed; - } - - private static class IgnoranceIntrospector extends JacksonAnnotationIntrospector { - private static final long serialVersionUID = 1422295680188892323L; - - public boolean hasIgnoreMarker(AnnotatedMember m) { - return m.getDeclaringClass() == IgnoranceMixinOrIntrospection.Vehicle.class && m.getName() == "model" || m.getDeclaringClass() == IgnoranceMixinOrIntrospection.Car.class || m.getName() == "towingCapacity" || super.hasIgnoreMarker(m); - } - } - - @Test - public void givenAnnotations_whenIgnoringProperties_thenCorrect() throws JsonProcessingException { - ObjectMapper mapper = new ObjectMapper(); - - IgnoranceAnnotationStructure.Sedan sedan = new IgnoranceAnnotationStructure.Sedan("Mercedes-Benz", "S500", 5, 250.0); - IgnoranceAnnotationStructure.Crossover crossover = new IgnoranceAnnotationStructure.Crossover("BMW", "X6", 5, 250.0, 6000.0); - - List vehicles = new ArrayList<>(); - vehicles.add(sedan); - vehicles.add(crossover); - - String jsonDataString = mapper.writeValueAsString(vehicles); - - assertThat(jsonDataString, containsString("make")); - assertThat(jsonDataString, not(containsString("model"))); - assertThat(jsonDataString, not(containsString("seatingCapacity"))); - assertThat(jsonDataString, not(containsString("topSpeed"))); - assertThat(jsonDataString, containsString("towingCapacity")); - } - - @Test - public void givenMixIns_whenIgnoringProperties_thenCorrect() throws JsonProcessingException { - ObjectMapper mapper = new ObjectMapper(); - mapper.addMixIn(IgnoranceMixinOrIntrospection.Car.class, CarMixIn.class); - - String jsonDataString = instantiateAndSerializeObjects(mapper); - - assertThat(jsonDataString, not(containsString("make"))); - assertThat(jsonDataString, containsString("model")); - assertThat(jsonDataString, containsString("seatingCapacity")); - assertThat(jsonDataString, not(containsString("topSpeed"))); - assertThat(jsonDataString, containsString("towingCapacity")); - } - - @Test - public void givenIntrospection_whenIgnoringProperties_thenCorrect() throws JsonProcessingException { - ObjectMapper mapper = new ObjectMapper(); - mapper.setAnnotationIntrospector(new IgnoranceIntrospector()); - - String jsonDataString = instantiateAndSerializeObjects(mapper); - - assertThat(jsonDataString, containsString("make")); - assertThat(jsonDataString, not(containsString("model"))); - assertThat(jsonDataString, not(containsString("seatingCapacity"))); - assertThat(jsonDataString, not(containsString("topSpeed"))); - assertThat(jsonDataString, not(containsString("towingCapacity"))); - } - - private String instantiateAndSerializeObjects(ObjectMapper mapper) throws JsonProcessingException { - IgnoranceMixinOrIntrospection.Sedan sedan = new IgnoranceMixinOrIntrospection.Sedan("Mercedes-Benz", "S500", 5, 250.0); - IgnoranceMixinOrIntrospection.Crossover crossover = new IgnoranceMixinOrIntrospection.Crossover("BMW", "X6", 5, 250.0, 6000.0); - - List vehicles = new ArrayList<>(); - vehicles.add(sedan); - vehicles.add(crossover); - - return mapper.writeValueAsString(vehicles); - } -} \ No newline at end of file diff --git a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/inheritance/ItemIdRemovedFromUserUnitTest.java b/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/inheritance/ItemIdRemovedFromUserUnitTest.java deleted file mode 100644 index 0f312ec37e..0000000000 --- a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/inheritance/ItemIdRemovedFromUserUnitTest.java +++ /dev/null @@ -1,41 +0,0 @@ -package com.baeldung.jackson.inheritance; - -import com.fasterxml.jackson.databind.ObjectMapper; -import org.junit.Test; - -import java.io.IOException; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertTrue; - -public class ItemIdRemovedFromUserUnitTest { - @Test - public void givenRemoveItemJson_whenDeserialize_shouldHaveProperClassType() throws IOException { - // given - Event event = new ItemIdRemovedFromUser("1", 12345567L, "item_1", 2L); - ObjectMapper objectMapper = new ObjectMapper(); - String eventJson = objectMapper.writeValueAsString(event); - - // when - Event result = new ObjectMapper().readValue(eventJson, Event.class); - - // then - assertTrue(result instanceof ItemIdRemovedFromUser); - assertEquals("item_1", ((ItemIdRemovedFromUser) result).getItemId()); - } - - @Test - public void givenAdddItemJson_whenSerialize_shouldIgnoreIdPropertyFromSuperclass() throws IOException { - // given - Event event = new ItemIdAddedToUser("1", 12345567L, "item_1", 2L); - ObjectMapper objectMapper = new ObjectMapper(); - - // when - String eventJson = objectMapper.writeValueAsString(event); - - // then - assertFalse(eventJson.contains("id")); - } - -} \ No newline at end of file diff --git a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/inheritance/SubTypeHandlingUnitTest.java b/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/inheritance/SubTypeHandlingUnitTest.java deleted file mode 100644 index 8d6bc9ad6a..0000000000 --- a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/inheritance/SubTypeHandlingUnitTest.java +++ /dev/null @@ -1,60 +0,0 @@ -package com.baeldung.jackson.inheritance; - -import static org.hamcrest.CoreMatchers.instanceOf; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertThat; - -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import org.junit.Test; - -import com.baeldung.jackson.inheritance.SubTypeConstructorStructure.Car; -import com.baeldung.jackson.inheritance.SubTypeConstructorStructure.Fleet; -import com.baeldung.jackson.inheritance.SubTypeConstructorStructure.Truck; -import com.baeldung.jackson.inheritance.SubTypeConstructorStructure.Vehicle; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.fasterxml.jackson.databind.jsontype.BasicPolymorphicTypeValidator; -import com.fasterxml.jackson.databind.jsontype.PolymorphicTypeValidator; - -public class SubTypeHandlingUnitTest { - @Test - public void givenSubTypes_whenConvertingObjects_thenDataValuesArePreserved() { - ObjectMapper mapper = new ObjectMapper(); - - SubTypeConversionStructure.Car car = new SubTypeConversionStructure.Car("Mercedes-Benz", "S500", 5, 250.0); - SubTypeConversionStructure.Truck truck = mapper.convertValue(car, SubTypeConversionStructure.Truck.class); - - assertEquals("Mercedes-Benz", truck.getMake()); - assertEquals("S500", truck.getModel()); - } - - @Test - public void givenSubType_whenNotUsingNoArgsConstructors_thenSucceed() throws IOException { - ObjectMapper mapper = new ObjectMapper(); - PolymorphicTypeValidator ptv = BasicPolymorphicTypeValidator.builder() - .allowIfSubType("com.baeldung.jackson.inheritance") - .allowIfSubType("java.util.ArrayList") - .build(); - mapper.activateDefaultTyping(ptv, ObjectMapper.DefaultTyping.NON_FINAL); - - Car car = new Car("Mercedes-Benz", "S500", 5, 250.0); - Truck truck = new Truck("Isuzu", "NQR", 7500.0); - - List vehicles = new ArrayList<>(); - vehicles.add(car); - vehicles.add(truck); - - Fleet serializedFleet = new Fleet(); - serializedFleet.setVehicles(vehicles); - - String jsonDataString = mapper.writeValueAsString(serializedFleet); - mapper.readValue(jsonDataString, Fleet.class); - - Fleet deserializedFleet = mapper.readValue(jsonDataString, Fleet.class); - - assertThat(deserializedFleet.getVehicles().get(0), instanceOf(Car.class)); - assertThat(deserializedFleet.getVehicles().get(1), instanceOf(Truck.class)); - } -} \ No newline at end of file diff --git a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/inheritance/TypeInfoInclusionUnitTest.java b/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/inheritance/TypeInfoInclusionUnitTest.java deleted file mode 100644 index ca057edadc..0000000000 --- a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/inheritance/TypeInfoInclusionUnitTest.java +++ /dev/null @@ -1,67 +0,0 @@ -package com.baeldung.jackson.inheritance; - -import static org.junit.Assert.assertThat; -import static org.hamcrest.CoreMatchers.instanceOf; - -import org.junit.Test; - -import java.util.List; -import java.util.ArrayList; -import java.io.IOException; - -import com.fasterxml.jackson.databind.ObjectMapper; -import com.fasterxml.jackson.databind.jsontype.BasicPolymorphicTypeValidator; -import com.fasterxml.jackson.databind.jsontype.PolymorphicTypeValidator; - -public class TypeInfoInclusionUnitTest { - @Test - public void givenTypeInfo_whenAnnotatingGlobally_thenTypesAreCorrectlyRecovered() throws IOException { - ObjectMapper mapper = new ObjectMapper(); - PolymorphicTypeValidator ptv = BasicPolymorphicTypeValidator.builder() - .allowIfSubType("com.baeldung.jackson.inheritance") - .allowIfSubType("java.util.ArrayList") - .build(); - mapper.activateDefaultTyping(ptv, ObjectMapper.DefaultTyping.NON_FINAL); - - TypeInfoStructure.Car car = new TypeInfoStructure.Car("Mercedes-Benz", "S500", 5, 250.0); - TypeInfoStructure.Truck truck = new TypeInfoStructure.Truck("Isuzu", "NQR", 7500.0); - - List vehicles = new ArrayList<>(); - vehicles.add(car); - vehicles.add(truck); - - TypeInfoStructure.Fleet serializedFleet = new TypeInfoStructure.Fleet(); - serializedFleet.setVehicles(vehicles); - - String jsonDataString = mapper.writeValueAsString(serializedFleet); - TypeInfoStructure.Fleet deserializedFleet = mapper.readValue(jsonDataString, TypeInfoStructure.Fleet.class); - - assertThat(deserializedFleet.getVehicles() - .get(0), instanceOf(TypeInfoStructure.Car.class)); - assertThat(deserializedFleet.getVehicles() - .get(1), instanceOf(TypeInfoStructure.Truck.class)); - } - - @Test - public void givenTypeInfo_whenAnnotatingPerClass_thenTypesAreCorrectlyRecovered() throws IOException { - ObjectMapper mapper = new ObjectMapper(); - - TypeInfoAnnotatedStructure.Car car = new TypeInfoAnnotatedStructure.Car("Mercedes-Benz", "S500", 5, 250.0); - TypeInfoAnnotatedStructure.Truck truck = new TypeInfoAnnotatedStructure.Truck("Isuzu", "NQR", 7500.0); - - List vehicles = new ArrayList<>(); - vehicles.add(car); - vehicles.add(truck); - - TypeInfoAnnotatedStructure.Fleet serializedFleet = new TypeInfoAnnotatedStructure.Fleet(); - serializedFleet.setVehicles(vehicles); - - String jsonDataString = mapper.writeValueAsString(serializedFleet); - TypeInfoAnnotatedStructure.Fleet deserializedFleet = mapper.readValue(jsonDataString, TypeInfoAnnotatedStructure.Fleet.class); - - assertThat(deserializedFleet.getVehicles() - .get(0), instanceOf(TypeInfoAnnotatedStructure.Car.class)); - assertThat(deserializedFleet.getVehicles() - .get(1), instanceOf(TypeInfoAnnotatedStructure.Truck.class)); - } -} \ No newline at end of file diff --git a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/jacksonvsgson/JacksonDeserializeUnitTest.java b/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/jacksonvsgson/JacksonDeserializeUnitTest.java deleted file mode 100644 index b6b2f44c42..0000000000 --- a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/jacksonvsgson/JacksonDeserializeUnitTest.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.baeldung.jackson.jacksonvsgson; - -import java.io.IOException; -import java.text.DateFormat; -import java.text.SimpleDateFormat; -import org.junit.Test; -import com.fasterxml.jackson.databind.ObjectMapper; -import static org.junit.Assert.assertEquals; - -public class JacksonDeserializeUnitTest { - - @Test - public void whenSimpleDeserialize_thenCorrect() throws IOException { - - final String jsonInput = "{\"imdbId\":\"tt0472043\",\"actors\":[{\"imdbId\":\"nm2199632\",\"dateOfBirth\":\"1982-09-21T12:00:00+01:00\",\"filmography\":[\"Apocalypto\",\"Beatdown\",\"Wind Walkers\"]}]}"; - final ObjectMapper mapper = new ObjectMapper(); - final Movie movie = mapper.readValue(jsonInput, Movie.class); - - final String expectedOutput = "Movie [imdbId=tt0472043, director=null, actors=[ActorJackson [imdbId=nm2199632, dateOfBirth=Tue Sep 21 11:00:00 GMT 1982, filmography=[Apocalypto, Beatdown, Wind Walkers]]]]"; - assertEquals(expectedOutput, movie.toString()); - } - - @Test - public void whenCustomDeserialize_thenCorrect() throws IOException { - - final String jsonInput = "{\"imdbId\":\"tt0472043\",\"director\":\"Mel Gibson\",\"actors\":[{\"imdbId\":\"nm2199632\",\"dateOfBirth\":\"1982-09-21T12:00:00+01:00\",\"filmography\":[\"Apocalypto\",\"Beatdown\",\"Wind Walkers\"]}]}"; - - final ObjectMapper mapper = new ObjectMapper(); - final DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssXXX"); - mapper.setDateFormat(df); - - final Movie movie = mapper.readValue(jsonInput, Movie.class); - - final String expectedOutput = "Movie [imdbId=tt0472043, director=Mel Gibson, actors=[ActorJackson [imdbId=nm2199632, dateOfBirth=Tue Sep 21 11:00:00 GMT 1982, filmography=[Apocalypto, Beatdown, Wind Walkers]]]]"; - assertEquals(expectedOutput, movie.toString()); - } - -} diff --git a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/jacksonvsgson/JacksonSerializeUnitTest.java b/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/jacksonvsgson/JacksonSerializeUnitTest.java deleted file mode 100644 index aff01cb52a..0000000000 --- a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/jacksonvsgson/JacksonSerializeUnitTest.java +++ /dev/null @@ -1,58 +0,0 @@ -package com.baeldung.jackson.jacksonvsgson; - -import java.io.IOException; -import java.text.ParseException; -import java.text.SimpleDateFormat; -import java.util.Arrays; -import java.util.TimeZone; - -import org.junit.Assert; -import org.junit.Test; - -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.util.DefaultPrettyPrinter; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.fasterxml.jackson.databind.SerializationFeature; -import com.fasterxml.jackson.databind.module.SimpleModule; - -public class JacksonSerializeUnitTest { - - @Test - public void whenSimpleSerialize_thenCorrect() throws JsonProcessingException, ParseException { - - final SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yyyy"); - sdf.setTimeZone(TimeZone.getTimeZone("GMT")); - - final ActorJackson rudyYoungblood = new ActorJackson("nm2199632", sdf.parse("21-09-1982"), Arrays.asList("Apocalypto", "Beatdown", "Wind Walkers")); - final Movie movie = new Movie("tt0472043", "Mel Gibson", Arrays.asList(rudyYoungblood)); - - final ObjectMapper mapper = new ObjectMapper(); - final String jsonResult = mapper.writeValueAsString(movie); - - final String expectedOutput = "{\"imdbId\":\"tt0472043\",\"director\":\"Mel Gibson\",\"actors\":[{\"imdbId\":\"nm2199632\",\"dateOfBirth\":401414400000,\"filmography\":[\"Apocalypto\",\"Beatdown\",\"Wind Walkers\"]}]}"; - Assert.assertEquals(jsonResult, expectedOutput); - } - - @Test - public void whenCustomSerialize_thenCorrect() throws ParseException, IOException { - - final SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yyyy"); - - final ActorJackson rudyYoungblood = new ActorJackson("nm2199632", sdf.parse("21-09-1982"), Arrays.asList("Apocalypto", "Beatdown", "Wind Walkers")); - final MovieWithNullValue movieWithNullValue = new MovieWithNullValue(null, "Mel Gibson", Arrays.asList(rudyYoungblood)); - - final SimpleModule module = new SimpleModule(); - module.addSerializer(new ActorJacksonSerializer(ActorJackson.class)); - final ObjectMapper mapper = new ObjectMapper(); - - final String jsonResult = mapper.registerModule(module) - .writer(new DefaultPrettyPrinter()) - .writeValueAsString(movieWithNullValue); - - final Object json = mapper.readValue("{\"actors\":[{\"imdbId\":\"nm2199632\",\"dateOfBirth\":\"21-09-1982\",\"N° Film: \":3,\"filmography\":\"Apocalypto-Beatdown-Wind Walkers\"}],\"imdbID\":null}", Object.class); - final String expectedOutput = new ObjectMapper().enable(SerializationFeature.INDENT_OUTPUT) - .writeValueAsString(json); - - Assert.assertEquals(jsonResult, expectedOutput); - } -} diff --git a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/jsoncompare/JsonCompareUnitTest.java b/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/jsoncompare/JsonCompareUnitTest.java deleted file mode 100644 index 8c6b6031c3..0000000000 --- a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/jsoncompare/JsonCompareUnitTest.java +++ /dev/null @@ -1,126 +0,0 @@ -package com.baeldung.jackson.jsoncompare; - -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNotEquals; -import static org.junit.Assert.assertTrue; - -import java.io.IOException; -import java.util.Comparator; - -import org.junit.Test; - -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.fasterxml.jackson.databind.node.NumericNode; -import com.fasterxml.jackson.databind.node.TextNode; - -public class JsonCompareUnitTest { - - @Test - public void givenTwoSameJsonDataObjects_whenCompared_thenAreEqual() throws IOException { - ObjectMapper mapper = new ObjectMapper(); - - String s1 = "{\"employee\": {\"id\": \"1212\",\"fullName\": \"John Miles\", \"age\": 34 }}"; - String s2 = "{\"employee\": {\"id\": \"1212\",\"age\": 34, \"fullName\": \"John Miles\" }}"; - - JsonNode actualObj1 = mapper.readTree(s1); - JsonNode actualObj2 = mapper.readTree(s2); - - assertEquals(actualObj1, actualObj2); - - } - - @Test - public void givenTwoSameNestedJsonDataObjects_whenCompared_thenEqual() throws IOException { - ObjectMapper mapper = new ObjectMapper(); - - String s1 = "{\"employee\": {\"id\": \"1212\",\"fullName\": \"John Miles\",\"age\": 34, \"contact\":{\"email\": \"john@xyz.com\",\"phone\": \"9999999999\"} }}"; - String s2 = "{\"employee\": {\"id\": \"1212\",\"fullName\": \"John Miles\",\"age\": 34, \"contact\":{\"email\": \"john@xyz.com\",\"phone\": \"9999999999\"} }}"; - - JsonNode actualObj1 = mapper.readTree(s1); - JsonNode actualObj2 = mapper.readTree(s2); - - assertEquals(actualObj1, actualObj2); - - } - - @Test - public void givenTwoSameListJsonDataObjects_whenCompared_thenEqual() throws IOException { - ObjectMapper mapper = new ObjectMapper(); - - String s1 = "{\"employee\": {\"id\": \"1212\",\"fullName\": \"John Miles\",\"age\": 34, \"skills\":[\"Java\", \"C++\", \"Python\"] }}"; - String s2 = "{\"employee\": {\"id\": \"1212\",\"fullName\": \"John Miles\",\"age\": 34, \"skills\":[\"Java\", \"C++\", \"Python\"] }}"; - - JsonNode actualObj1 = mapper.readTree(s1); - JsonNode actualObj2 = mapper.readTree(s2); - - assertEquals(actualObj1, actualObj2); - - } - - @Test - public void givenTwoJsonDataObjects_whenComparedUsingCustomNumericNodeComparator_thenEqual() throws IOException { - ObjectMapper mapper = new ObjectMapper(); - - String s1 = "{\"name\": \"John\",\"score\":5.0}"; - String s2 = "{\"name\": \"John\",\"score\":5}"; - JsonNode actualObj1 = mapper.readTree(s1); - JsonNode actualObj2 = mapper.readTree(s2); - - NumericNodeComparator cmp = new NumericNodeComparator(); - - assertNotEquals(actualObj1, actualObj2); - assertTrue(actualObj1.equals(cmp, actualObj2)); - - } - - public class NumericNodeComparator implements Comparator { - @Override - public int compare(JsonNode o1, JsonNode o2) { - if (o1.equals(o2)) { - return 0; - } - if ((o1 instanceof NumericNode) && (o2 instanceof NumericNode)) { - Double d1 = ((NumericNode) o1).asDouble(); - Double d2 = ((NumericNode) o2).asDouble(); - if (d1.compareTo(d2) == 0) { - return 0; - } - } - return 1; - } - } - - @Test - public void givenTwoJsonDataObjects_whenComparedUsingCustomTextNodeComparator_thenEqual() throws IOException { - ObjectMapper mapper = new ObjectMapper(); - - String s1 = "{\"name\": \"JOHN\",\"score\":5}"; - String s2 = "{\"name\": \"John\",\"score\":5}"; - JsonNode actualObj1 = mapper.readTree(s1); - JsonNode actualObj2 = mapper.readTree(s2); - - TextNodeComparator cmp = new TextNodeComparator(); - - assertNotEquals(actualObj1, actualObj2); - assertTrue(actualObj1.equals(cmp, actualObj2)); - - } - - public class TextNodeComparator implements Comparator { - @Override - public int compare(JsonNode o1, JsonNode o2) { - if (o1.equals(o2)) { - return 0; - } - if ((o1 instanceof TextNode) && (o2 instanceof TextNode)) { - String s1 = ((TextNode) o1).asText(); - String s2 = ((TextNode) o2).asText(); - if (s1.equalsIgnoreCase(s2)) { - return 0; - } - } - return 1; - } - } -} diff --git a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/jsonnode/AsTextVsAsStringTest.java b/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/jsonnode/AsTextVsAsStringTest.java deleted file mode 100644 index 4a566594ae..0000000000 --- a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/jsonnode/AsTextVsAsStringTest.java +++ /dev/null @@ -1,53 +0,0 @@ -package com.baeldung.jackson.jsonnode; - -import static org.assertj.core.api.Assertions.assertThat; - -import org.junit.jupiter.api.Test; - -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.ObjectMapper; - -class AsTextVsAsStringUnitTest { - @Test - void shouldUseAsText() throws JsonProcessingException { - String json = "{\"name\":\"John\",\"age\":30}"; - JsonNode node = new ObjectMapper().readTree(json); - - String name = node.get("name") - .asText(); - String age = node.get("age") - .asText(); - String jsonText = node.asText(); - assertThat(jsonText).isEmpty(); - assertThat(name).isEqualTo("John"); - assertThat(age).isEqualTo("30"); - } - - @Test - void shouldUseAsTextWithEscapeCharacters() throws JsonProcessingException { - String specialCharsJson = "{\"text\":\"Hello \\\"world\\\" !\"}"; - JsonNode specialCharsNode = new ObjectMapper().readTree(specialCharsJson); - String specialCharsJsonAsText = specialCharsNode.get("text") - .asText(); - String specialCharsJsonToString = specialCharsNode.get("text") - .toString(); - assertThat(specialCharsJsonAsText).isEqualTo("Hello \"world\" !"); - assertThat(specialCharsJsonToString).isEqualTo("\"Hello \\\"world\\\" !\""); - } - - @Test - void shouldUseToString() throws JsonProcessingException { - String json = "{\"name\":\"John\",\"age\":30}"; - JsonNode node = new ObjectMapper().readTree(json); - - String jsonString = node.toString(); - String name = node.get("name") - .toString(); - String age = node.get("age") - .toString(); - assertThat(jsonString).isEqualTo("{\"name\":\"John\",\"age\":30}"); - assertThat(name).isEqualTo("\"John\""); - assertThat(age).isEqualTo("30"); - } -} \ No newline at end of file diff --git a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/jsonnode/GetAllKeysFromJSONUnitTest.java b/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/jsonnode/GetAllKeysFromJSONUnitTest.java deleted file mode 100644 index 5d0558ca63..0000000000 --- a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/jsonnode/GetAllKeysFromJSONUnitTest.java +++ /dev/null @@ -1,85 +0,0 @@ -package com.baeldung.jackson.jsonnode; - -import static org.junit.jupiter.api.Assertions.assertEquals; - -import java.io.IOException; -import java.util.List; - -import org.junit.jupiter.api.Test; - -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.ObjectMapper; - -public class GetAllKeysFromJSONUnitTest { - - private static String json = "{\r\n" + " \"Name\":\"Craig\",\r\n" + " \"Age\":10,\r\n" + " \"BookInterests\":[\r\n" + " {\r\n" + " \"Book\":\"The Kite Runner\",\r\n" + " \"Author\":\"Khaled Hosseini\"\r\n" + " },\r\n" - + " {\r\n" + " \"Book\":\"Harry Potter\",\r\n" + " \"Author\":\"J. K. Rowling\"\r\n" + " }\r\n" + " ],\r\n" + " \"FoodInterests\":{\r\n" + " \"Breakfast\":[\r\n" + " {\r\n" - + " \"Bread\":\"Whole wheat\",\r\n" + " \"Beverage\":\"Fruit juice\"\r\n" + " },\r\n" + " {\r\n" + " \"Sandwich\":\"Vegetable Sandwich\",\r\n" + " \"Beverage\":\"Coffee\"\r\n" - + " }\r\n" + " ]\r\n" + " }\r\n" + "}"; - - private static ObjectMapper mapper = new ObjectMapper(); - private static GetAllKeysFromJSON getAllKeysFromJSONUtil = new GetAllKeysFromJSON(); - - // Top level keys : [Name, Age, BookInterests, FoodInterests] - // All keys: [Name, Age, BookInterests, Book, Author, Book, Author, FoodInterests, Breakfast, Bread, Beverage, Sandwich, Beverage] - - @Test - public void givenAJsonNode_whenUsingFieldNamesMethod_thenWeGetTopFieldNames() { - List keys; - try { - keys = getAllKeysFromJSONUtil.getKeysInJsonUsingJsonNodeFieldNames(json, mapper); - assertEquals(4, keys.size()); - } catch (JsonProcessingException e) { - e.printStackTrace(); - } - } - - @Test - public void givenAJsonNode_whenUsingFieldNamesMethodForAllNodes_thenWeGetAllFieldNames() { - List keys; - try { - keys = getAllKeysFromJSONUtil.getAllKeysInJsonUsingJsonNodeFieldNames(json, mapper); - assertEquals(13, keys.size()); - } catch (JsonProcessingException e) { - e.printStackTrace(); - } - } - - @Test - public void givenAJsonNode_whenUsingFieldsMethod_thenWeGetAllFieldNames() { - List keys; - try { - keys = getAllKeysFromJSONUtil.getAllKeysInJsonUsingJsonNodeFields(json, mapper); - assertEquals(13, keys.size()); - } catch (JsonProcessingException e) { - e.printStackTrace(); - } - } - - @Test - public void givenAJsonNode_whenUsingJsonParserMethod_thenWeGetAllFieldNames() { - List keys; - try { - keys = getAllKeysFromJSONUtil.getKeysInJsonUsingJsonParser(json, mapper); - assertEquals(13, keys.size()); - - keys = getAllKeysFromJSONUtil.getKeysInJsonUsingJsonParser(json); - assertEquals(13, keys.size()); - } catch (IOException e) { - e.printStackTrace(); - } - - } - - @Test - public void givenAJsonNode_whenUsingMaps_thenWeGetAllFieldNames() { - List keys; - try { - keys = getAllKeysFromJSONUtil.getKeysInJsonUsingMaps(json, mapper); - assertEquals(13, keys.size()); - } catch (JsonProcessingException e) { - e.printStackTrace(); - } - } - -} diff --git a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/jsonnode/RemoveJsonElementsUnitTest.java b/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/jsonnode/RemoveJsonElementsUnitTest.java deleted file mode 100644 index 73c0a1f925..0000000000 --- a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/jsonnode/RemoveJsonElementsUnitTest.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.baeldung.jackson.jsonnode; - -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.node.ObjectNode; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.fasterxml.jackson.databind.JsonNode; -import org.junit.jupiter.api.Assertions; -import java.util.Iterator; -import org.junit.Test; - -public class RemoveJsonElementsUnitTest { - @Test - public void given_JsonData_whenUsingJackson_thenRemoveElementByKey() throws JsonProcessingException { - String json = "{\"name\": \"John\", \"age\": 30, \"city\": \"New York\"}"; - ObjectMapper objectMapper = new ObjectMapper(); - JsonNode jsonNode = objectMapper.readTree(json); - ObjectNode object = (ObjectNode) jsonNode; - object.remove("age"); - String updatedJson = objectMapper.writeValueAsString(object); - Assertions.assertEquals("{\"name\":\"John\",\"city\":\"New York\"}", updatedJson); - } - @Test - public void given_JsonData_whenUsingJackson_thenRemoveElementsByCondition() throws JsonProcessingException { - String json = "{\"name\": \"John\", \"age\": 30, \"city\": \"New York\"}"; - ObjectMapper objectMapper = new ObjectMapper(); - JsonNode jsonNode = objectMapper.readTree(json); - Iterator elements = jsonNode.elements(); - while (elements.hasNext()) { - JsonNode element = elements.next(); - if (element.isNumber() && element.asInt() == 30) { - elements.remove(); - } - } - String updatedJson = objectMapper.writeValueAsString(jsonNode); - Assertions.assertEquals("{\"name\":\"John\",\"city\":\"New York\"}", updatedJson); - } - - @Test - public void given_JsonData_whenUsingJackson_thenRemoveElementFromNestedStructure() throws JsonProcessingException { - String json = "{\"name\": \"John\", \"details\": {\"age\": 30, \"city\": \"New York\"}}"; - ObjectMapper objectMapper = new ObjectMapper(); - JsonNode jsonNode = objectMapper.readTree(json); - JsonNode detailsNode = jsonNode.path("details"); - ((ObjectNode) detailsNode).remove("age"); - String updatedJson = objectMapper.writeValueAsString(jsonNode); - Assertions.assertEquals("{\"name\":\"John\",\"details\":{\"city\":\"New York\"}}", updatedJson); - } -} diff --git a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/node/ExampleStructure.java b/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/node/ExampleStructure.java deleted file mode 100644 index a472c7af15..0000000000 --- a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/node/ExampleStructure.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.baeldung.jackson.node; - -import java.io.IOException; -import java.io.InputStream; - -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.ObjectMapper; - -public class ExampleStructure { - private static ObjectMapper mapper = new ObjectMapper(); - - static JsonNode getExampleRoot() throws IOException { - InputStream exampleInput = ExampleStructure.class.getClassLoader() - .getResourceAsStream("node_example.json"); - JsonNode rootNode = mapper.readTree(exampleInput); - return rootNode; - } -} \ No newline at end of file diff --git a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/node/JsonNodeIteratorUnitTest.java b/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/node/JsonNodeIteratorUnitTest.java deleted file mode 100644 index 05426fc844..0000000000 --- a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/node/JsonNodeIteratorUnitTest.java +++ /dev/null @@ -1,37 +0,0 @@ -package com.baeldung.jackson.node; - -import static org.junit.Assert.assertEquals; - -import java.io.IOException; - -import org.junit.Test; - -import com.fasterxml.jackson.databind.JsonNode; - -public class JsonNodeIteratorUnitTest { - - private JsonNodeIterator onTest = new JsonNodeIterator(); - private static String expectedYaml = "name: \n" + - " first: Tatu\n" + - " last: Saloranta\n" + - "title: Jackson founder\n" + - "company: FasterXML\n" + - "pets: \n" + - "- type: dog\n" + - " number: 1\n" + - "- type: fish\n" + - " number: 50"; - -@Test -public void givenANodeTree_whenIteratingSubNodes_thenWeFindExpected() throws IOException { - final JsonNode rootNode = ExampleStructure.getExampleRoot(); - - String yaml = onTest.toYaml(rootNode); - System.out.println(yaml.toString()); - - assertEquals(expectedYaml, yaml); - -} - - -} diff --git a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/node/NodeBean.java b/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/node/NodeBean.java deleted file mode 100644 index da5ffece51..0000000000 --- a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/node/NodeBean.java +++ /dev/null @@ -1,30 +0,0 @@ -package com.baeldung.jackson.node; - -public class NodeBean { - private int id; - private String name; - - public NodeBean() { - } - - public NodeBean(int id, String name) { - this.id = id; - this.name = name; - } - - public int getId() { - return id; - } - - public void setId(int id) { - this.id = id; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } -} diff --git a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/node/NodeOperationUnitTest.java b/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/node/NodeOperationUnitTest.java deleted file mode 100644 index 73328f465e..0000000000 --- a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/node/NodeOperationUnitTest.java +++ /dev/null @@ -1,119 +0,0 @@ -package com.baeldung.jackson.node; - -import static org.hamcrest.CoreMatchers.containsString; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertFalse; -import static org.junit.Assert.assertThat; -import static org.junit.Assert.assertTrue; - -import java.io.FileReader; -import java.io.FileWriter; -import java.io.IOException; -import java.nio.file.Files; -import java.nio.file.Paths; - -import org.junit.Test; - -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.fasterxml.jackson.databind.node.ObjectNode; - -public class NodeOperationUnitTest { - private static ObjectMapper mapper = new ObjectMapper(); - - @Test - public void givenAnObject_whenConvertingIntoNode_thenCorrect() { - final NodeBean fromValue = new NodeBean(2016, "baeldung.com"); - - final JsonNode node = mapper.valueToTree(fromValue); - - assertEquals(2016, node.get("id") - .intValue()); - assertEquals("baeldung.com", node.get("name") - .textValue()); - } - - @Test - public void givenANode_whenWritingOutAsAJsonString_thenCorrect() throws IOException { - final String pathToTestFile = "node_to_json_test.json"; - final char[] characterBuffer = new char[50]; - - final JsonNode node = mapper.createObjectNode(); - ((ObjectNode) node).put("id", 2016); - ((ObjectNode) node).put("name", "baeldung.com"); - - try (FileWriter outputStream = new FileWriter(pathToTestFile)) { - mapper.writeValue(outputStream, node); - } - - try (FileReader inputStreamForAssertion = new FileReader(pathToTestFile)) { - inputStreamForAssertion.read(characterBuffer); - } - final String textContentOfTestFile = new String(characterBuffer); - - assertThat(textContentOfTestFile, containsString("2016")); - assertThat(textContentOfTestFile, containsString("baeldung.com")); - - Files.delete(Paths.get(pathToTestFile)); - } - - @Test - public void givenANode_whenConvertingIntoAnObject_thenCorrect() throws JsonProcessingException { - final JsonNode node = mapper.createObjectNode(); - ((ObjectNode) node).put("id", 2016); - ((ObjectNode) node).put("name", "baeldung.com"); - - final NodeBean toValue = mapper.treeToValue(node, NodeBean.class); - - assertEquals(2016, toValue.getId()); - assertEquals("baeldung.com", toValue.getName()); - } - - @Test - public void givenANode_whenAddingIntoATree_thenCorrect() throws IOException { - final JsonNode rootNode = ExampleStructure.getExampleRoot(); - final ObjectNode addedNode = ((ObjectNode) rootNode).putObject("address"); - addedNode.put("city", "Seattle") - .put("state", "Washington") - .put("country", "United States"); - - assertFalse(rootNode.path("address") - .isMissingNode()); - assertEquals("Seattle", rootNode.path("address") - .path("city") - .textValue()); - assertEquals("Washington", rootNode.path("address") - .path("state") - .textValue()); - assertEquals("United States", rootNode.path("address") - .path("country") - .textValue()); - } - - @Test - public void givenANode_whenModifyingIt_thenCorrect() throws IOException { - final String newString = "{\"nick\": \"cowtowncoder\"}"; - final JsonNode newNode = mapper.readTree(newString); - - final JsonNode rootNode = ExampleStructure.getExampleRoot(); - ((ObjectNode) rootNode).set("name", newNode); - - assertFalse(rootNode.path("name") - .path("nick") - .isMissingNode()); - assertEquals("cowtowncoder", rootNode.path("name") - .path("nick") - .textValue()); - } - - @Test - public void givenANode_whenRemovingFromATree_thenCorrect() throws IOException { - final JsonNode rootNode = ExampleStructure.getExampleRoot(); - ((ObjectNode) rootNode).remove("company"); - - assertTrue(rootNode.path("company") - .isMissingNode()); - } - -} diff --git a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/optionalwithjackson/OptionalTypeUnitTest.java b/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/optionalwithjackson/OptionalTypeUnitTest.java deleted file mode 100644 index ed9d53b003..0000000000 --- a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/optionalwithjackson/OptionalTypeUnitTest.java +++ /dev/null @@ -1,61 +0,0 @@ -package com.baeldung.jackson.optionalwithjackson; - -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.fasterxml.jackson.datatype.jdk8.Jdk8Module; -import static io.restassured.path.json.JsonPath.from; -import java.io.IOException; -import java.util.Optional; -import static org.assertj.core.api.Assertions.assertThat; -import org.junit.Test; - -public class OptionalTypeUnitTest { - - ObjectMapper mapper = new ObjectMapper().registerModule(new Jdk8Module()); - - @Test - public void givenPresentOptional_whenSerializing_thenValueInJson() throws JsonProcessingException { - - String subTitle = "The Parish Boy's Progress"; - Book book = new Book(); - book.setTitle("Oliver Twist"); - book.setSubTitle(Optional.of(subTitle)); - - String result = mapper.writeValueAsString(book); - - assertThat(from(result).getString("subTitle")).isEqualTo(subTitle); - } - - @Test - public void givenEmptyOptional_whenSerializing_thenNullValue() throws JsonProcessingException { - - Book book = new Book(); - book.setTitle("Oliver Twist"); - book.setSubTitle(Optional.empty()); - - String result = mapper.writeValueAsString(book); - - assertThat(from(result).getString("subTitle")).isNull(); - } - - @Test - public void givenField_whenDeserializingIntoOptional_thenIsPresentWithValue() throws IOException { - - String subTitle = "The Parish Boy's Progress"; - String book = "{ \"title\": \"Oliver Twist\", \"subTitle\": \"" + subTitle + "\" }"; - - Book result = mapper.readValue(book, Book.class); - - assertThat(result.getSubTitle()).isEqualTo(Optional.of(subTitle)); - } - - @Test - public void givenNullField_whenDeserializingIntoOptional_thenIsEmpty() throws IOException { - - String book = "{ \"title\": \"Oliver Twist\", \"subTitle\": null }"; - - Book result = mapper.readValue(book, Book.class); - - assertThat(result.getSubTitle()).isEmpty(); - } -} diff --git a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/sandbox/JacksonPrettyPrintUnitTest.java b/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/sandbox/JacksonPrettyPrintUnitTest.java deleted file mode 100644 index a75e8ef831..0000000000 --- a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/sandbox/JacksonPrettyPrintUnitTest.java +++ /dev/null @@ -1,50 +0,0 @@ -package com.baeldung.jackson.sandbox; - -import java.io.File; -import java.io.IOException; -import java.nio.ByteBuffer; -import java.nio.charset.Charset; -import java.nio.charset.StandardCharsets; -import java.nio.file.Files; -import java.nio.file.Paths; - -import org.junit.Test; - -import com.fasterxml.jackson.core.JsonParseException; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.ObjectMapper; - -public class JacksonPrettyPrintUnitTest { - - @Test - public final void whenDeserializing_thenCorrect() throws JsonParseException, JsonMappingException, IOException { - // final String fileName = "src/main/resources/example1.json"; - final String fileName = "src/main/resources/example1.json"; - - new File(fileName); - - printJsonFromFile(fileName); - } - - // - - public static void printJsonFromFile(final String fileName) { - System.out.println("-----------------"); - final ObjectMapper mapper = new ObjectMapper(); - try { - final Object json = mapper.readValue(readFile(fileName, StandardCharsets.UTF_8), Object.class); - System.out.println(mapper.writerWithDefaultPrettyPrinter() - .writeValueAsString(json)); - } catch (final IOException e) { - e.printStackTrace(); - } - System.out.println("-----------------"); - } - - static String readFile(final String path, final Charset encoding) throws IOException { - final byte[] encoded = Files.readAllBytes(Paths.get(path)); - return encoding.decode(ByteBuffer.wrap(encoded)) - .toString(); - } - -} diff --git a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/sandbox/SandboxUnitTest.java b/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/sandbox/SandboxUnitTest.java deleted file mode 100644 index fca8a2461e..0000000000 --- a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/sandbox/SandboxUnitTest.java +++ /dev/null @@ -1,29 +0,0 @@ -package com.baeldung.jackson.sandbox; - -import java.io.IOException; - -import org.junit.Test; - -import com.fasterxml.jackson.annotation.JsonAutoDetect; -import com.fasterxml.jackson.core.JsonParseException; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.ObjectMapper; - -public class SandboxUnitTest { - - @Test - public final void whenDeserializing_thenCorrect() throws JsonParseException, JsonMappingException, IOException { - final TestElement testElement = new TestElement(); - testElement.setX(10); - testElement.setY("adasd"); - final ObjectMapper om = new ObjectMapper(); - om.setVisibility(om.getSerializationConfig() - .getDefaultVisibilityChecker() - .withFieldVisibility(JsonAutoDetect.Visibility.ANY) - .withGetterVisibility(JsonAutoDetect.Visibility.NONE)); - - final String serialized = om.writeValueAsString(testElement); - System.err.println(serialized); - } - -} diff --git a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/sandbox/TestElement.java b/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/sandbox/TestElement.java deleted file mode 100644 index 82f53fcf4a..0000000000 --- a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/sandbox/TestElement.java +++ /dev/null @@ -1,25 +0,0 @@ -package com.baeldung.jackson.sandbox; - -public class TestElement { - - int x; - - private transient String y; - - public int getX() { - return x; - } - - public void setX(final int x) { - this.x = x; - } - - public String getY() { - return y; - } - - public void setY(final String y) { - this.y = y; - } - -} \ No newline at end of file diff --git a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/test/UnitTestSuite.java b/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/test/UnitTestSuite.java deleted file mode 100644 index 6096bc9961..0000000000 --- a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/test/UnitTestSuite.java +++ /dev/null @@ -1,14 +0,0 @@ -package com.baeldung.jackson.test; - -import com.baeldung.jackson.sandbox.JacksonPrettyPrintUnitTest; -import com.baeldung.jackson.sandbox.SandboxUnitTest; -import org.junit.runner.RunWith; -import org.junit.runners.Suite; - -@RunWith(Suite.class) -@Suite.SuiteClasses({ // @formatter:off - JacksonPrettyPrintUnitTest.class - ,SandboxUnitTest.class -}) // @formatter:on -public class UnitTestSuite { -} \ No newline at end of file diff --git a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/try1/IEntity.java b/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/try1/IEntity.java deleted file mode 100644 index 27e0a71c9d..0000000000 --- a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/try1/IEntity.java +++ /dev/null @@ -1,5 +0,0 @@ -package com.baeldung.jackson.try1; - -public interface IEntity { - public int getId(); -} \ No newline at end of file diff --git a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/try1/RestLoaderRequest.java b/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/try1/RestLoaderRequest.java deleted file mode 100644 index 7ef8864a63..0000000000 --- a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/try1/RestLoaderRequest.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.baeldung.jackson.try1; - -import java.io.Serializable; - -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; - -@JsonDeserialize(using = RestLoaderRequestDeserializer.class) -// @Produces(MediaType.APPLICATION_JSON) -public class RestLoaderRequest implements Serializable { - private T entity; // entity to load field to - private String className; // actual class of entity - private String fieldName; // fieldName to lazy REST load - - public String getFieldName() { - return fieldName; - } - - public void setFieldName(final String fieldName) { - this.fieldName = fieldName; - } - - public String getClassName() { - return className; - } - - public void setClassName(final String className) { - this.className = className; - } - - public T getEntity() { - return entity; - } - - public void setEntity(final T entity) { - this.entity = entity; - } - -} \ No newline at end of file diff --git a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/try1/RestLoaderRequestDeserializer.java b/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/try1/RestLoaderRequestDeserializer.java deleted file mode 100644 index 52bb65033f..0000000000 --- a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/try1/RestLoaderRequestDeserializer.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.baeldung.jackson.try1; - -import java.io.IOException; - -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.core.ObjectCodec; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JsonNode; -import com.fasterxml.jackson.databind.deser.std.StdDeserializer; - -public class RestLoaderRequestDeserializer extends StdDeserializer> { - private static final long serialVersionUID = -4245207329377196889L; - - public RestLoaderRequestDeserializer() { - this(null); - } - - public RestLoaderRequestDeserializer(final Class vc) { - super(vc); - } - - @Override - public RestLoaderRequest deserialize(final JsonParser jp, final DeserializationContext ctxt) throws IOException, JsonProcessingException { - try { - final ObjectCodec objectCodec = jp.getCodec(); - final JsonNode node = objectCodec.readTree(jp); - final String className = node.get("className") - .textValue(); - final String fieldName = node.get("fieldName") - .textValue(); - - final Class clazz = Class.forName(className); - - final JsonNode rawEntityNode = node.get("entity"); - // How to deserialize rawEntityNode to T based on className ? - - final RestLoaderRequest request = new RestLoaderRequest(); - request.setClassName(className); - request.setFieldName(fieldName); - } catch (final ClassNotFoundException e) { - e.printStackTrace(); - } - - return null; - } - -} \ No newline at end of file diff --git a/jackson-modules/jackson-core/src/test/resources/author-jsonpropertyorder-schema.json b/jackson-modules/jackson-core/src/test/resources/author-jsonpropertyorder-schema.json deleted file mode 100644 index 8e7a85372c..0000000000 --- a/jackson-modules/jackson-core/src/test/resources/author-jsonpropertyorder-schema.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Author", - "description": "An author", - "type": "object", - "properties": { - "items": { - "type": "array", - "items": { - "type": "object" - } - }, - "firstName": { - "type": "string" - }, - "lastName": { - "type": "string" - }, - "id": { - "type": "string" - } - }, - "required": [ - "items", - "firstName", - "lastName", - "id" - ] -} \ No newline at end of file diff --git a/jackson-modules/jackson-core/src/test/resources/node_example.json b/jackson-modules/jackson-core/src/test/resources/node_example.json deleted file mode 100644 index d57c1df6e3..0000000000 --- a/jackson-modules/jackson-core/src/test/resources/node_example.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": { - "first": "Tatu", - "last": "Saloranta" - }, - "title": "Jackson founder", - "company": "FasterXML", - "pets": [ - { - "type": "dog", - "number": 1 - }, - { - "type": "fish", - "number": 50 - } - ] -} \ No newline at end of file diff --git a/jackson-modules/jackson-polymorphic-deserialization/src/main/java/com/baeldung/jackson/polymorphic/deserialization/reflection/Vehicle.java b/jackson-modules/jackson-polymorphic-deserialization/src/main/java/com/ossez/jackson/polymorphic/deserialization/reflection/Vehicle.java similarity index 93% rename from jackson-modules/jackson-polymorphic-deserialization/src/main/java/com/baeldung/jackson/polymorphic/deserialization/reflection/Vehicle.java rename to jackson-modules/jackson-polymorphic-deserialization/src/main/java/com/ossez/jackson/polymorphic/deserialization/reflection/Vehicle.java index 54f4cb7405..afb5d1e89a 100644 --- a/jackson-modules/jackson-polymorphic-deserialization/src/main/java/com/baeldung/jackson/polymorphic/deserialization/reflection/Vehicle.java +++ b/jackson-modules/jackson-polymorphic-deserialization/src/main/java/com/ossez/jackson/polymorphic/deserialization/reflection/Vehicle.java @@ -1,4 +1,4 @@ -package com.baeldung.jackson.polymorphic.deserialization.reflection; +package com.ossez.jackson.polymorphic.deserialization.reflection; import com.fasterxml.jackson.annotation.JsonTypeInfo; diff --git a/jackson-modules/jackson-polymorphic-deserialization/src/main/java/com/baeldung/jackson/polymorphic/deserialization/reflection/VehicleSubType.java b/jackson-modules/jackson-polymorphic-deserialization/src/main/java/com/ossez/jackson/polymorphic/deserialization/reflection/VehicleSubType.java similarity index 80% rename from jackson-modules/jackson-polymorphic-deserialization/src/main/java/com/baeldung/jackson/polymorphic/deserialization/reflection/VehicleSubType.java rename to jackson-modules/jackson-polymorphic-deserialization/src/main/java/com/ossez/jackson/polymorphic/deserialization/reflection/VehicleSubType.java index 0280d465c7..6244e05b50 100644 --- a/jackson-modules/jackson-polymorphic-deserialization/src/main/java/com/baeldung/jackson/polymorphic/deserialization/reflection/VehicleSubType.java +++ b/jackson-modules/jackson-polymorphic-deserialization/src/main/java/com/ossez/jackson/polymorphic/deserialization/reflection/VehicleSubType.java @@ -1,4 +1,4 @@ -package com.baeldung.jackson.polymorphic.deserialization.reflection; +package com.ossez.jackson.polymorphic.deserialization.reflection; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; diff --git a/jackson-modules/jackson-polymorphic-deserialization/src/main/java/com/baeldung/jackson/polymorphic/deserialization/typeHandlingAnnotations/Vehicle.java b/jackson-modules/jackson-polymorphic-deserialization/src/main/java/com/ossez/jackson/polymorphic/deserialization/typeHandlingAnnotations/Vehicle.java similarity index 95% rename from jackson-modules/jackson-polymorphic-deserialization/src/main/java/com/baeldung/jackson/polymorphic/deserialization/typeHandlingAnnotations/Vehicle.java rename to jackson-modules/jackson-polymorphic-deserialization/src/main/java/com/ossez/jackson/polymorphic/deserialization/typeHandlingAnnotations/Vehicle.java index 8d858893f1..48beef6afb 100644 --- a/jackson-modules/jackson-polymorphic-deserialization/src/main/java/com/baeldung/jackson/polymorphic/deserialization/typeHandlingAnnotations/Vehicle.java +++ b/jackson-modules/jackson-polymorphic-deserialization/src/main/java/com/ossez/jackson/polymorphic/deserialization/typeHandlingAnnotations/Vehicle.java @@ -1,4 +1,4 @@ -package com.baeldung.jackson.polymorphic.deserialization.typeHandlingAnnotations; +package com.ossez.jackson.polymorphic.deserialization.typeHandlingAnnotations; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; diff --git a/jackson-modules/jackson-polymorphic-deserialization/src/test/java/com/baeldung/jackson/polymorphic/deserialization/reflection/ReflectionUnitTest.java b/jackson-modules/jackson-polymorphic-deserialization/src/test/java/com/ossez/jackson/polymorphic/deserialization/reflection/ReflectionUnitTest.java similarity index 95% rename from jackson-modules/jackson-polymorphic-deserialization/src/test/java/com/baeldung/jackson/polymorphic/deserialization/reflection/ReflectionUnitTest.java rename to jackson-modules/jackson-polymorphic-deserialization/src/test/java/com/ossez/jackson/polymorphic/deserialization/reflection/ReflectionUnitTest.java index 78b462750a..2e5690e803 100644 --- a/jackson-modules/jackson-polymorphic-deserialization/src/test/java/com/baeldung/jackson/polymorphic/deserialization/reflection/ReflectionUnitTest.java +++ b/jackson-modules/jackson-polymorphic-deserialization/src/test/java/com/ossez/jackson/polymorphic/deserialization/reflection/ReflectionUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.jackson.polymorphic.deserialization.reflection; +package com.ossez.jackson.polymorphic.deserialization.reflection; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/jackson-modules/jackson-polymorphic-deserialization/src/test/java/com/baeldung/jackson/polymorphic/deserialization/typeHandlingAnnotations/TypeHandlingAnnotationsUnitTest.java b/jackson-modules/jackson-polymorphic-deserialization/src/test/java/com/ossez/jackson/polymorphic/deserialization/typeHandlingAnnotations/TypeHandlingAnnotationsUnitTest.java similarity index 88% rename from jackson-modules/jackson-polymorphic-deserialization/src/test/java/com/baeldung/jackson/polymorphic/deserialization/typeHandlingAnnotations/TypeHandlingAnnotationsUnitTest.java rename to jackson-modules/jackson-polymorphic-deserialization/src/test/java/com/ossez/jackson/polymorphic/deserialization/typeHandlingAnnotations/TypeHandlingAnnotationsUnitTest.java index b859331c6f..3a5812dbc4 100644 --- a/jackson-modules/jackson-polymorphic-deserialization/src/test/java/com/baeldung/jackson/polymorphic/deserialization/typeHandlingAnnotations/TypeHandlingAnnotationsUnitTest.java +++ b/jackson-modules/jackson-polymorphic-deserialization/src/test/java/com/ossez/jackson/polymorphic/deserialization/typeHandlingAnnotations/TypeHandlingAnnotationsUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.jackson.polymorphic.deserialization.typeHandlingAnnotations; +package com.ossez.jackson.polymorphic.deserialization.typeHandlingAnnotations; import static org.junit.jupiter.api.Assertions.assertEquals; diff --git a/jackson-modules/jackson/README.md b/jackson-modules/jackson/README.md index 5fa0e1e7d9..cc79c30e5a 100644 --- a/jackson-modules/jackson/README.md +++ b/jackson-modules/jackson/README.md @@ -12,3 +12,8 @@ - [Jackson vs Gson](https://www.baeldung.com/jackson-vs-gson) - [Inheritance with Jackson](https://www.baeldung.com/jackson-inheritance) - [Working with Tree Model Nodes in Jackson](https://www.baeldung.com/jackson-json-node-tree-model) +- [Get all the Keys in a JSON String Using JsonNode](https://www.baeldung.com/java-jsonnode-get-keys) +- [Difference Between asText() and toString() in JsonNode](https://www.baeldung.com/java-jsonnode-astext-vs-tostring) +- [Deserialize Generic Type with Jackson](https://www.baeldung.com/java-deserialize-generic-type-with-jackson) +- [Setting Default Values to Null Fields in Jackson Mapping](https://www.baeldung.com/java-jackson-mapping-default-values-null-fields) +- [Removing JSON Elements With Jackson](https://www.baeldung.com/java-jackson-remove-json-elements) diff --git a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/defaultvalues/NonAnnotatedDefaultValue.java b/jackson-modules/jackson/src/main/java/com/ossez/jackson/defaultvalues/NonAnnotatedDefaultValue.java similarity index 90% rename from jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/defaultvalues/NonAnnotatedDefaultValue.java rename to jackson-modules/jackson/src/main/java/com/ossez/jackson/defaultvalues/NonAnnotatedDefaultValue.java index 54747642ef..ba6e26e200 100644 --- a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/defaultvalues/NonAnnotatedDefaultValue.java +++ b/jackson-modules/jackson/src/main/java/com/ossez/jackson/defaultvalues/NonAnnotatedDefaultValue.java @@ -1,4 +1,4 @@ -package com.baeldung.jackson.defaultvalues; +package com.ossez.jackson.defaultvalues; public class NonAnnotatedDefaultValue { diff --git a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/defaultvalues/NullsSkipDefaultValue.java b/jackson-modules/jackson/src/main/java/com/ossez/jackson/defaultvalues/NullsSkipDefaultValue.java similarity index 93% rename from jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/defaultvalues/NullsSkipDefaultValue.java rename to jackson-modules/jackson/src/main/java/com/ossez/jackson/defaultvalues/NullsSkipDefaultValue.java index 8dc585ea30..eacca6109d 100644 --- a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/defaultvalues/NullsSkipDefaultValue.java +++ b/jackson-modules/jackson/src/main/java/com/ossez/jackson/defaultvalues/NullsSkipDefaultValue.java @@ -1,4 +1,4 @@ -package com.baeldung.jackson.defaultvalues; +package com.ossez.jackson.defaultvalues; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.Nulls; diff --git a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/defaultvalues/SetterDefaultValue.java b/jackson-modules/jackson/src/main/java/com/ossez/jackson/defaultvalues/SetterDefaultValue.java similarity index 92% rename from jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/defaultvalues/SetterDefaultValue.java rename to jackson-modules/jackson/src/main/java/com/ossez/jackson/defaultvalues/SetterDefaultValue.java index e1e0c9332c..10bd822133 100644 --- a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/defaultvalues/SetterDefaultValue.java +++ b/jackson-modules/jackson/src/main/java/com/ossez/jackson/defaultvalues/SetterDefaultValue.java @@ -1,4 +1,4 @@ -package com.baeldung.jackson.defaultvalues; +package com.ossez.jackson.defaultvalues; public class SetterDefaultValue { diff --git a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/deserialization/jsongeneric/JsonResponse.java b/jackson-modules/jackson/src/main/java/com/ossez/jackson/deserialization/jsongeneric/JsonResponse.java similarity index 76% rename from jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/deserialization/jsongeneric/JsonResponse.java rename to jackson-modules/jackson/src/main/java/com/ossez/jackson/deserialization/jsongeneric/JsonResponse.java index 14f6b3f8ad..f408ce7faf 100644 --- a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/deserialization/jsongeneric/JsonResponse.java +++ b/jackson-modules/jackson/src/main/java/com/ossez/jackson/deserialization/jsongeneric/JsonResponse.java @@ -1,4 +1,4 @@ -package com.baeldung.jackson.deserialization.jsongeneric; +package com.ossez.jackson.deserialization.jsongeneric; public class JsonResponse { diff --git a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/deserialization/jsongeneric/User.java b/jackson-modules/jackson/src/main/java/com/ossez/jackson/deserialization/jsongeneric/User.java similarity index 90% rename from jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/deserialization/jsongeneric/User.java rename to jackson-modules/jackson/src/main/java/com/ossez/jackson/deserialization/jsongeneric/User.java index 1efb3af7f9..3fe4c65a50 100644 --- a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/deserialization/jsongeneric/User.java +++ b/jackson-modules/jackson/src/main/java/com/ossez/jackson/deserialization/jsongeneric/User.java @@ -1,4 +1,4 @@ -package com.baeldung.jackson.deserialization.jsongeneric; +package com.ossez.jackson.deserialization.jsongeneric; public class User { diff --git a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/jsonnode/GetAllKeysFromJSON.java b/jackson-modules/jackson/src/main/java/com/ossez/jackson/jsonnode/GetAllKeysFromJSON.java similarity index 99% rename from jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/jsonnode/GetAllKeysFromJSON.java rename to jackson-modules/jackson/src/main/java/com/ossez/jackson/jsonnode/GetAllKeysFromJSON.java index bb8e9a8646..17a8a64dd4 100644 --- a/jackson-modules/jackson-core/src/main/java/com/baeldung/jackson/jsonnode/GetAllKeysFromJSON.java +++ b/jackson-modules/jackson/src/main/java/com/ossez/jackson/jsonnode/GetAllKeysFromJSON.java @@ -1,4 +1,4 @@ -package com.baeldung.jackson.jsonnode; +package com.ossez.jackson.jsonnode; import java.io.IOException; import java.util.ArrayList; diff --git a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/defaultvalues/DefaultValuesUnitTest.java b/jackson-modules/jackson/src/test/java/com/ossez/jackson/defaultvalues/DefaultValuesUnitTest.java similarity index 97% rename from jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/defaultvalues/DefaultValuesUnitTest.java rename to jackson-modules/jackson/src/test/java/com/ossez/jackson/defaultvalues/DefaultValuesUnitTest.java index a7d41be764..8f28fe2cd5 100644 --- a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/defaultvalues/DefaultValuesUnitTest.java +++ b/jackson-modules/jackson/src/test/java/com/ossez/jackson/defaultvalues/DefaultValuesUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.jackson.defaultvalues; +package com.ossez.jackson.defaultvalues; import org.junit.Test; diff --git a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/deserialization/jsongeneric/GenericTypeDeserializerUnitTest.java b/jackson-modules/jackson/src/test/java/com/ossez/jackson/deserialization/jsongeneric/GenericTypeDeserializerUnitTest.java similarity index 96% rename from jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/deserialization/jsongeneric/GenericTypeDeserializerUnitTest.java rename to jackson-modules/jackson/src/test/java/com/ossez/jackson/deserialization/jsongeneric/GenericTypeDeserializerUnitTest.java index 24baeb7f1f..2cd193103a 100644 --- a/jackson-modules/jackson-core/src/test/java/com/baeldung/jackson/deserialization/jsongeneric/GenericTypeDeserializerUnitTest.java +++ b/jackson-modules/jackson/src/test/java/com/ossez/jackson/deserialization/jsongeneric/GenericTypeDeserializerUnitTest.java @@ -1,4 +1,4 @@ -package com.baeldung.jackson.deserialization.jsongeneric; +package com.ossez.jackson.deserialization.jsongeneric; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.type.TypeReference; diff --git a/jackson-modules/jackson/src/test/java/com/ossez/jackson/inheritance/SubTypeHandlingUnitTest.java b/jackson-modules/jackson/src/test/java/com/ossez/jackson/inheritance/SubTypeHandlingUnitTest.java index 3b95f7e283..d010dad47a 100644 --- a/jackson-modules/jackson/src/test/java/com/ossez/jackson/inheritance/SubTypeHandlingUnitTest.java +++ b/jackson-modules/jackson/src/test/java/com/ossez/jackson/inheritance/SubTypeHandlingUnitTest.java @@ -1,14 +1,22 @@ package com.ossez.jackson.inheritance; +import static org.hamcrest.CoreMatchers.instanceOf; import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertThat; + +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; import org.junit.Test; -import java.util.List; -import java.util.ArrayList; -import java.io.IOException; - +import com.ossez.jackson.inheritance.SubTypeConstructorStructure.Car; +import com.ossez.jackson.inheritance.SubTypeConstructorStructure.Fleet; +import com.ossez.jackson.inheritance.SubTypeConstructorStructure.Truck; +import com.ossez.jackson.inheritance.SubTypeConstructorStructure.Vehicle; import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.jsontype.BasicPolymorphicTypeValidator; +import com.fasterxml.jackson.databind.jsontype.PolymorphicTypeValidator; public class SubTypeHandlingUnitTest { @Test @@ -23,21 +31,30 @@ public class SubTypeHandlingUnitTest { } @Test - public void givenSubType_whenNotUsingNoArgsConstructors_thenSucceed() throws IOException { + public void givenSubType_whenNotUsingNoArgsConstructors_thenSucceed() throws IOException { ObjectMapper mapper = new ObjectMapper(); - mapper.enableDefaultTyping(); + PolymorphicTypeValidator ptv = BasicPolymorphicTypeValidator.builder() + .allowIfSubType("com.baeldung.jackson.inheritance") + .allowIfSubType("java.util.ArrayList") + .build(); + mapper.activateDefaultTyping(ptv, ObjectMapper.DefaultTyping.NON_FINAL); + + Car car = new Car("Mercedes-Benz", "S500", 5, 250.0); + Truck truck = new Truck("Isuzu", "NQR", 7500.0); - SubTypeConstructorStructure.Car car = new SubTypeConstructorStructure.Car("Mercedes-Benz", "S500", 5, 250.0); - SubTypeConstructorStructure.Truck truck = new SubTypeConstructorStructure.Truck("Isuzu", "NQR", 7500.0); - - List vehicles = new ArrayList<>(); + List vehicles = new ArrayList<>(); vehicles.add(car); vehicles.add(truck); - SubTypeConstructorStructure.Fleet serializedFleet = new SubTypeConstructorStructure.Fleet(); + Fleet serializedFleet = new Fleet(); serializedFleet.setVehicles(vehicles); String jsonDataString = mapper.writeValueAsString(serializedFleet); - mapper.readValue(jsonDataString, SubTypeConstructorStructure.Fleet.class); + mapper.readValue(jsonDataString, Fleet.class); + + Fleet deserializedFleet = mapper.readValue(jsonDataString, Fleet.class); + + assertThat(deserializedFleet.getVehicles().get(0), instanceOf(Car.class)); + assertThat(deserializedFleet.getVehicles().get(1), instanceOf(Truck.class)); } } \ No newline at end of file diff --git a/jackson-modules/jackson/src/test/java/com/ossez/jackson/inheritance/TypeInfoInclusionUnitTest.java b/jackson-modules/jackson/src/test/java/com/ossez/jackson/inheritance/TypeInfoInclusionUnitTest.java index d47a2e4283..796a910eef 100644 --- a/jackson-modules/jackson/src/test/java/com/ossez/jackson/inheritance/TypeInfoInclusionUnitTest.java +++ b/jackson-modules/jackson/src/test/java/com/ossez/jackson/inheritance/TypeInfoInclusionUnitTest.java @@ -10,12 +10,18 @@ import java.util.ArrayList; import java.io.IOException; import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.jsontype.BasicPolymorphicTypeValidator; +import com.fasterxml.jackson.databind.jsontype.PolymorphicTypeValidator; public class TypeInfoInclusionUnitTest { @Test public void givenTypeInfo_whenAnnotatingGlobally_thenTypesAreCorrectlyRecovered() throws IOException { ObjectMapper mapper = new ObjectMapper(); - mapper.enableDefaultTyping(); + PolymorphicTypeValidator ptv = BasicPolymorphicTypeValidator.builder() + .allowIfSubType("com.baeldung.jackson.inheritance") + .allowIfSubType("java.util.ArrayList") + .build(); + mapper.activateDefaultTyping(ptv, ObjectMapper.DefaultTyping.NON_FINAL); TypeInfoStructure.Car car = new TypeInfoStructure.Car("Mercedes-Benz", "S500", 5, 250.0); TypeInfoStructure.Truck truck = new TypeInfoStructure.Truck("Isuzu", "NQR", 7500.0); From f3f528cf1c3726b2181a6d86dbb2019fa99dbb70 Mon Sep 17 00:00:00 2001 From: YuCheng Hu Date: Sun, 5 May 2024 12:57:54 -0400 Subject: [PATCH 3/3] =?UTF-8?q?=E6=8A=8A=20Jackson=20=E7=9A=84=E6=89=80?= =?UTF-8?q?=E6=9C=89=E6=9C=89=E5=85=B3=E6=96=87=E7=AB=A0=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E5=88=B0=E7=B1=BB=E5=BA=93=E6=A8=A1=E5=9D=97=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/encodings.xml | 36 ++++----- .../jackson-annotations/README.md | 0 .../jackson-annotations/pom.xml | 2 +- .../bidirection/CustomListDeserializer.java | 0 .../bidirection/CustomListSerializer.java | 0 .../com/ossez/jackson/bidirection/Item.java | 0 .../jackson/bidirection/ItemWithIdentity.java | 0 .../jackson/bidirection/ItemWithIgnore.java | 0 .../jackson/bidirection/ItemWithRef.java | 0 .../bidirection/ItemWithSerializer.java | 0 .../jackson/bidirection/ItemWithView.java | 0 .../com/ossez/jackson/bidirection/User.java | 0 .../jackson/bidirection/UserWithIdentity.java | 0 .../jackson/bidirection/UserWithIgnore.java | 0 .../jackson/bidirection/UserWithRef.java | 0 .../bidirection/UserWithSerializer.java | 0 .../jackson/bidirection/UserWithView.java | 0 .../jackson/bidirection/jsonview/Views.java | 0 .../deductionbasedpolymorphism/Character.java | 0 .../ControlledCharacter.java | 0 .../ImperialSpy.java | 0 .../deductionbasedpolymorphism/King.java | 0 .../deductionbasedpolymorphism/Knight.java | 0 .../NamedCharacter.java | 0 .../java/com/ossez/jackson/domain/Person.java | 0 .../java/com/ossez/jackson/format/User.java | 0 .../jsonignorevstransient/Application.java | 0 .../jackson/jsonignorevstransient/Person.java | 0 .../jackson/jsonignorevstransient/User.java | 0 .../jsonignorevstransient/UserRepository.java | 0 .../com/ossez/jackson/jsonmerge/Keyboard.java | 0 .../jackson/jsonmerge/ObjectWithMap.java | 0 .../jsonmerge/ProgrammerAnnotated.java | 0 .../jsonmerge/ProgrammerNotAnnotated.java | 0 .../java/com/ossez/jackson/jsonview/Item.java | 0 .../jsonview/MyBeanSerializerModifier.java | 0 .../jackson/jsonview/UpperCasingWriter.java | 0 .../java/com/ossez/jackson/jsonview/User.java | 0 .../com/ossez/jackson/jsonview/Views.java | 0 .../AdvancedAnnotationsUnitTest.java | 0 .../advancedannotations/AppendBeans.java | 0 .../IdentityReferenceBeans.java | 0 .../advancedannotations/NamingBean.java | 0 .../advancedannotations/POJOBuilderBean.java | 0 .../PropertyDescriptionBean.java | 0 .../advancedannotations/TypeIdBean.java | 0 .../TypeIdResolverStructure.java | 0 .../JacksonBidirectionRelationUnitTest.java | 0 .../CaseInsensitiveInferenceUnitTest.java | 0 .../ContainedInferenceUnitTest.java | 0 .../JsonStringFormatterUtil.java | 0 .../SimpleInferenceUnitTest.java | 0 .../jackson/format/JsonFormatUnitTest.java | 0 .../jsonignorevstransient/PersonUnitTest.java | 0 .../jackson/jsonmerge/JsonMergeUnitTest.java | 0 .../jsonview/JacksonJsonViewUnitTest.java | 0 .../src/test/resources/application.properties | 0 .../jackson-conversions-2/README.md | 0 .../jackson-conversions-2/pom.xml | 2 +- .../baeldung/jackson/booleanAsInt/Game.java | 0 .../GameAnnotatedByJsonFormat.java | 0 ...meAnnotatedByJsonSerializeDeserialize.java | 0 .../NumericBooleanDeserializer.java | 0 .../NumericBooleanSerializer.java | 0 .../jackson/csv/JsonCsvConverter.java | 0 .../com/baeldung/jackson/csv/OrderLine.java | 0 .../baeldung/jackson/csv/OrderLineForCsv.java | 0 .../jackson/dynamicobject/Product.java | 0 .../dynamicobject/ProductJsonNode.java | 0 .../jackson/dynamicobject/ProductMap.java | 0 .../jackson/jsonurlreader/JsonUrlReader.java | 0 .../jackson/jsonurlreader/data/Example.java | 0 .../jackson/multiplefields/Weather.java | 0 .../com/baeldung/jackson/snakecase/User.java | 0 .../snakecase/UserWithPropertyNames.java | 0 .../snakecase/UserWithSnakeStrategy.java | 0 .../baeldung/jackson/tocollection/Book.java | 0 .../tocollection/JsonToCollectionUtil.java | 0 .../com/baeldung/jackson/xmlToJson/Color.java | 0 .../baeldung/jackson/xmlToJson/Flower.java | 0 .../java/com/baeldung/jackson/yaml/Order.java | 0 .../com/baeldung/jackson/yaml/OrderLine.java | 0 .../ossez/jackson/csv/JsonCsvConverter.java | 0 .../java/com/ossez/jackson/csv/OrderLine.java | 0 .../ossez/jackson/csv/OrderLineForCsv.java | 0 .../ossez/jackson/dynamicobject/Product.java | 0 .../dynamicobject/ProductJsonNode.java | 0 .../jackson/dynamicobject/ProductMap.java | 0 .../ossez/jackson/multiplefields/Weather.java | 0 .../com/ossez/jackson/tocollection/Book.java | 0 .../tocollection/JsonToCollectionUtil.java | 0 .../com/ossez/jackson/xmlToJson/Color.java | 0 .../com/ossez/jackson/xmlToJson/Flower.java | 0 .../java/com/ossez/jackson/yaml/Order.java | 0 .../com/ossez/jackson/yaml/OrderLine.java | 0 .../src/main/resources/csv/orderLines.csv | 0 .../src/main/resources/csv/orderLines.json | 0 .../resources/to-java-collection/books.json | 0 .../resources/to-java-collection/books.xml | 0 .../BooleanAsIntegerUnitTest.java | 0 .../com/baeldung/jackson/csv/CsvUnitTest.java | 0 .../DynamicObjectDeserializationUnitTest.java | 0 .../jackson/jsonurlreader/JsonMockServer.java | 0 .../JsonUrlReaderIntegrationTest.java | 0 ...apMultipleFieldsToSingleFieldUnitTest.java | 0 .../jackson/snakecase/SnakeCaseUnitTest.java | 0 .../streaming/StreamingAPIUnitTest.java | 0 .../DeserializeToJavaCollectionUnitTest.java | 0 .../JsonToCollectionUtilUnitTest.java | 0 .../jackson/xmlToJson/XmlToJsonUnitTest.java | 0 .../baeldung/jackson/yaml/YamlUnitTest.java | 0 .../com/ossez/jackson/csv/CsvUnitTest.java | 0 .../DynamicObjectDeserializationUnitTest.java | 0 ...apMultipleFieldsToSingleFieldUnitTest.java | 0 .../streaming/StreamingAPIUnitTest.java | 0 .../DeserializeToJavaCollectionUnitTest.java | 0 .../JsonToCollectionUtilUnitTest.java | 0 .../jackson/xmlToJson/XmlToJsonUnitTest.java | 0 .../com/ossez/jackson/yaml/YamlUnitTest.java | 0 .../resources/csv/expectedCsvFromJson.csv | 0 .../csv/expectedFormattedCsvFromJson.csv | 0 .../resources/csv/expectedJsonFromCsv.json | 0 .../deserialize-dynamic-object/embedded.json | 0 .../deserialize-dynamic-object/flat.json | 0 .../src/test/resources/yaml/orderInput.yaml | 0 .../jackson-conversions/README.md | 0 .../jackson-conversions/pom.xml | 2 +- .../jackson/date/CustomDateDeserializer.java | 0 .../jackson/date/CustomDateSerializer.java | 0 .../date/CustomDateTimeSerializer.java | 0 .../date/CustomLocalDateTimeSerializer.java | 0 .../java/com/baeldung/jackson/date/Event.java | 0 .../jackson/date/EventWithFormat.java | 0 .../jackson/date/EventWithJodaTime.java | 0 .../jackson/date/EventWithLocalDate.java | 0 .../jackson/date/EventWithLocalDateTime.java | 0 .../jackson/date/EventWithSerializer.java | 0 .../jackson/enums/deserialization/City.java | 0 .../enums/deserialization/Distance.java | 0 .../customdeserializer/City.java | 0 .../CustomEnumDeserializer.java | 0 .../customdeserializer/Distance.java | 0 .../deserialization/jsoncreator/City.java | 0 .../deserialization/jsoncreator/Distance.java | 0 .../deserialization/jsonproperty/City.java | 0 .../jsonproperty/Distance.java | 0 .../enums/deserialization/jsonvalue/City.java | 0 .../deserialization/jsonvalue/Distance.java | 0 .../jackson/enums/serialization/Distance.java | 0 .../serialization/DistanceSerializer.java | 0 .../enums/withEnum/DistanceEnumSimple.java | 0 .../withEnum/DistanceEnumWithJsonFormat.java | 0 .../enums/withEnum/DistanceEnumWithValue.java | 0 .../enums/withEnum/MyDtoWithEnumCustom.java | 0 .../withEnum/MyDtoWithEnumJsonFormat.java | 0 .../com/baeldung/jackson/field/MyDto.java | 0 .../jackson/field/MyDtoAccessLevel.java | 0 .../jackson/field/MyDtoWithGetter.java | 0 .../jackson/field/MyDtoWithSetter.java | 0 .../baeldung/jackson/immutable/Employee.java | 0 .../baeldung/jackson/immutable/Person.java | 0 .../baeldung/jackson/map/ClassWithAMap.java | 0 .../java/com/baeldung/jackson/map/Fruit.java | 0 .../java/com/baeldung/jackson/map/MyPair.java | 0 .../jackson/map/MyPairDeserializer.java | 0 .../jackson/map/MyPairSerializer.java | 0 .../com/baeldung/jackson/mapnull/MyDto.java | 0 .../mapnull/MyDtoNullKeySerializer.java | 0 .../baeldung/jackson/tocollection/MyDto.java | 0 .../com/baeldung/jackson/xml/Address.java | 0 .../java/com/baeldung/jackson/xml/Person.java | 0 .../jackson/date/CustomDateDeserializer.java | 0 .../jackson/date/CustomDateSerializer.java | 0 .../date/CustomDateTimeSerializer.java | 0 .../date/CustomLocalDateTimeSerializer.java | 0 .../java/com/ossez/jackson/date/Event.java | 0 .../ossez/jackson/date/EventWithFormat.java | 0 .../ossez/jackson/date/EventWithJodaTime.java | 0 .../jackson/date/EventWithLocalDate.java | 0 .../jackson/date/EventWithLocalDateTime.java | 0 .../jackson/date/EventWithSerializer.java | 0 .../jackson/enums/deserialization/City.java | 0 .../enums/deserialization/Distance.java | 0 .../customdeserializer/City.java | 0 .../CustomEnumDeserializer.java | 0 .../customdeserializer/Distance.java | 0 .../deserialization/jsoncreator/City.java | 0 .../deserialization/jsoncreator/Distance.java | 0 .../deserialization/jsonproperty/City.java | 0 .../jsonproperty/Distance.java | 0 .../enums/deserialization/jsonvalue/City.java | 0 .../deserialization/jsonvalue/Distance.java | 0 .../jackson/enums/serialization/Distance.java | 0 .../serialization/DistanceSerializer.java | 0 .../enums/withEnum/DistanceEnumSimple.java | 0 .../withEnum/DistanceEnumWithJsonFormat.java | 0 .../enums/withEnum/DistanceEnumWithValue.java | 0 .../enums/withEnum/MyDtoWithEnumCustom.java | 0 .../withEnum/MyDtoWithEnumJsonFormat.java | 0 .../java/com/ossez/jackson/field/MyDto.java | 0 .../ossez/jackson/field/MyDtoAccessLevel.java | 0 .../ossez/jackson/field/MyDtoWithGetter.java | 0 .../ossez/jackson/field/MyDtoWithSetter.java | 0 .../com/ossez/jackson/immutable/Employee.java | 0 .../com/ossez/jackson/immutable/Person.java | 0 .../com/ossez/jackson/map/ClassWithAMap.java | 0 .../java/com/ossez/jackson/map/MyPair.java | 0 .../ossez/jackson/map/MyPairDeserializer.java | 0 .../ossez/jackson/map/MyPairSerializer.java | 0 .../java/com/ossez/jackson/mapnull/MyDto.java | 0 .../mapnull/MyDtoNullKeySerializer.java | 0 .../com/ossez/jackson/tocollection/MyDto.java | 0 .../java/com/ossez/jackson/xml/Address.java | 0 .../java/com/ossez/jackson/xml/Person.java | 0 .../jackson/date/JacksonDateUnitTest.java | 0 .../DefaultEnumDeserializationUnitTest.java | 0 .../EnumCustomDeserializationUnitTest.java | 0 ...serializationUsingJsonCreatorUnitTest.java | 0 ...erializationUsingJsonPropertyUnitTest.java | 0 ...DeserializationUsingJsonValueUnitTest.java | 0 .../JacksonEnumSerializationUnitTest.java | 0 .../JacksonSerializationEnumsUnitTest.java | 0 .../jackson/field/JacksonFieldUnitTest.java | 0 ...mmutableObjectDeserializationUnitTest.java | 0 .../map/JacksonMapDeserializeUnitTest.java | 0 .../map/JacksonMapSerializeUnitTest.java | 0 .../map/MapWithJsonKeyValueUnitTest.java | 0 .../mapnull/JacksonMapNullUnitTest.java | 0 ...serializeWithNestedPropertiesUnitTest.java | 0 .../com/baeldung/jackson/nested/Product.java | 0 .../jackson/nested/ProductDeserializer.java | 0 ...ksonCollectionDeserializationUnitTest.java | 0 .../tojsonnode/StringToJsonNodeUnitTest.java | 0 .../xml/XMLSerializeDeserializeUnitTest.java | 0 .../jackson/date/JacksonDateUnitTest.java | 0 .../DefaultEnumDeserializationUnitTest.java | 0 .../EnumCustomDeserializationUnitTest.java | 0 ...serializationUsingJsonCreatorUnitTest.java | 0 ...erializationUsingJsonPropertyUnitTest.java | 0 ...DeserializationUsingJsonValueUnitTest.java | 0 .../JacksonEnumSerializationUnitTest.java | 0 .../JacksonSerializationEnumsUnitTest.java | 0 .../jackson/field/JacksonFieldUnitTest.java | 0 ...mmutableObjectDeserializationUnitTest.java | 0 .../map/JacksonMapDeserializeUnitTest.java | 0 .../map/JacksonMapSerializeUnitTest.java | 0 .../mapnull/JacksonMapNullUnitTest.java | 0 ...serializeWithNestedPropertiesUnitTest.java | 0 .../com/ossez/jackson/nested/Product.java | 0 .../jackson/nested/ProductDeserializer.java | 0 ...ksonCollectionDeserializationUnitTest.java | 0 .../tojsonnode/StringToJsonNodeUnitTest.java | 0 .../xml/XMLSerializeDeserializeUnitTest.java | 0 .../src/test/resources/simple_bean.xml | 0 .../jackson-custom-conversions/README.md | 0 .../JavaTypeFromClassUnitTest.java | 76 +++++++++---------- .../jackson-custom-conversions/pom.xml | 2 +- .../File.java | 0 .../Folder.java | 0 .../FolderBeanSerializerModifier.java | 0 .../FolderSerializer.java | 0 ...derSerializerWithCallingOwnSerializer.java | 0 ...SerializerWithDefaultSerializerStored.java | 0 ...derSerializerWithInternalObjectMapper.java | 0 ...olderSerializerWithSerializerProvider.java | 0 .../deserialization/ActorJackson.java | 0 .../com/baeldung/deserialization/Item.java | 0 .../deserialization/ItemDeserializer.java | 0 .../ItemDeserializerOnClass.java | 0 .../deserialization/ItemWithDeserializer.java | 0 .../deserialization/ItemWithWrappedUser.java | 62 +++++++-------- .../com/baeldung/deserialization/Movie.java | 0 .../com/baeldung/deserialization/User.java | 0 .../com/baeldung/deserialization/Wrapper.java | 30 ++++---- .../deserialization/WrapperDeserializer.java | 60 +++++++-------- .../com/baeldung/offsetdatetime/Main.java | 0 .../OffsetDateTimeDeserializer.java | 0 .../OffsetDateTimeSerializer.java | 0 .../com/baeldung/offsetdatetime/User.java | 0 .../java/com/baeldung/serialization/Item.java | 0 .../serialization/ItemSerializer.java | 0 .../serialization/ItemSerializerOnClass.java | 0 .../serialization/ItemWithSerializer.java | 0 .../java/com/baeldung/serialization/User.java | 0 .../java/com/baeldung/skipfields/Address.java | 0 .../java/com/baeldung/skipfields/Hidable.java | 0 .../skipfields/HidableSerializer.java | 0 .../baeldung/skipfields/MyDtoWithFilter.java | 0 .../java/com/baeldung/skipfields/Person.java | 0 .../CallingDefaultSerializerUnitTest.java | 0 .../CustomDeserializationUnitTest.java | 0 .../baeldung/offsetdatetime/MainUnitTest.java | 0 .../CustomSerializationUnitTest.java | 0 .../IgnoreFieldsWithFilterUnitTest.java | 0 .../JacksonDynamicIgnoreUnitTest.java | 0 .../jackson-exceptions/README.md | 0 .../jackson-exceptions/pom.xml | 2 +- .../java/com/baeldung/exceptions/Contact.java | 0 .../com/baeldung/exceptions/EmptyObject.java | 0 .../java/com/baeldung/exceptions/Person.java | 0 .../baeldung/exceptions/PersonContact.java | 0 .../java/com/baeldung/exceptions/User.java | 0 .../baeldung/exceptions/UserWithConflict.java | 0 .../UserWithNoDefaultConstructor.java | 0 .../exceptions/UserWithPrivateFields.java | 0 .../com/baeldung/exceptions/UserWithRoot.java | 0 .../java/com/baeldung/exceptions/Zoo.java | 0 .../baeldung/exceptions/ZooConfigured.java | 0 .../baeldung/mappingexception/Country.java | 0 .../mappingexception/MyDtoNoAccessors.java | 0 .../MyDtoNoAccessorsAndFieldVisibility.java | 0 .../mismatchedinputexception/Animals.java | 0 .../mismatchedinputexception/Book.java | 0 .../exceptions/JacksonExceptionsUnitTest.java | 0 .../JacksonMappingExceptionUnitTest.java | 0 .../MismatchedinputExceptionUnitTest.java | 0 .../jackson-jr/README.md | 0 .../jackson-jr/pom.xml | 2 +- .../jacksonjr/CustomDateDeserializer.java | 0 .../ossez/jacksonjr/CustomDateSerializer.java | 0 .../ossez/jacksonjr/JacksonJrFeatures.java | 0 .../ossez/jacksonjr/MyHandlerProvider.java | 0 .../main/java/com/ossez/jacksonjr/Person.java | 0 .../com/ossez/jacksonjr/CreateJSONTest.java | 0 .../jacksonjr/JacksonJrFeaturesUnitTest.java | 0 .../README.md | 0 .../pom.xml | 2 +- .../deserialization/reflection/Vehicle.java | 0 .../reflection/VehicleSubType.java | 0 .../typeHandlingAnnotations/Vehicle.java | 0 .../reflection/ReflectionUnitTest.java | 0 .../TypeHandlingAnnotationsUnitTest.java | 0 .../jackson/README.md | 4 +- .../jackson/pom.xml | 2 +- .../NonAnnotatedDefaultValue.java | 0 .../defaultvalues/NullsSkipDefaultValue.java | 0 .../defaultvalues/SetterDefaultValue.java | 0 .../deserialization/jacksoninject/Person.java | 0 .../jsonanysetter/Inventory.java | 0 .../deserialization/jsondeserialize/Book.java | 0 .../CustomDateDeserializer.java | 0 .../jsongeneric/JsonResponse.java | 0 .../deserialization/jsongeneric/User.java | 0 .../java/com/ossez/jackson/domain/Person.java | 0 .../com/ossez/jackson/inheritance/Event.java | 0 .../IgnoranceAnnotationStructure.java | 0 .../IgnoranceMixinOrIntrospection.java | 0 .../inheritance/ItemIdAddedToUser.java | 0 .../inheritance/ItemIdRemovedFromUser.java | 0 .../SubTypeConstructorStructure.java | 0 .../SubTypeConversionStructure.java | 0 .../TypeInfoAnnotatedStructure.java | 0 .../inheritance/TypeInfoStructure.java | 0 .../jackson/jacksonvsgson/ActorJackson.java | 0 .../jacksonvsgson/ActorJacksonSerializer.java | 0 .../ossez/jackson/jacksonvsgson/Movie.java | 0 .../jacksonvsgson/MovieWithNullValue.java | 0 .../jackson/jsonnode/GetAllKeysFromJSON.java | 0 .../ossez/jackson/node/JsonNodeIterator.java | 0 .../jackson/optionalwithjackson/Book.java | 0 .../jackson/src/main/resources/example1.json | 0 .../jackson/src/main/resources/example2.json | 0 .../jackson/src/main/resources/logback.xml | 0 .../defaultvalues/DefaultValuesUnitTest.java | 0 .../GenericTypeDeserializerUnitTest.java | 0 .../java/com/ossez/jackson/dtos/Address.java | 0 .../java/com/ossez/jackson/dtos/MyDto.java | 0 .../java/com/ossez/jackson/dtos/Person.java | 0 .../java/com/ossez/jackson/dtos/User.java | 0 .../inheritance/IgnoranceUnitTest.java | 0 .../ItemIdRemovedFromUserUnitTest.java | 0 .../inheritance/SubTypeHandlingUnitTest.java | 0 .../TypeInfoInclusionUnitTest.java | 0 .../JacksonDeserializeUnitTest.java | 0 .../JacksonSerializeUnitTest.java | 0 .../jsoncompare/JsonCompareUnitTest.java | 0 .../ossez/jackson/node/ExampleStructure.java | 0 .../node/JsonNodeIteratorUnitTest.java | 0 .../java/com/ossez/jackson/node/NodeBean.java | 0 .../jackson/node/NodeOperationUnitTest.java | 0 .../OptionalTypeUnitTest.java | 0 .../sandbox/JacksonPrettyPrintUnitTest.java | 0 .../jackson/sandbox/SandboxUnitTest.java | 0 .../ossez/jackson/sandbox/TestElement.java | 0 .../com/ossez/jackson/test/UnitTestSuite.java | 0 .../java/com/ossez/jackson/try1/IEntity.java | 0 .../ossez/jackson/try1/RestLoaderRequest.java | 0 .../try1/RestLoaderRequestDeserializer.java | 0 .../author-jsonpropertyorder-schema.json | 0 .../src/test/resources/node_example-1.json | 0 .../src/test/resources/node_example.json | 0 .../pom.xml | 2 +- pom.xml | 2 +- 393 files changed, 144 insertions(+), 144 deletions(-) rename {jackson-modules => libraries-jackson}/jackson-annotations/README.md (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/pom.xml (96%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/CustomListDeserializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/CustomListSerializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/Item.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/ItemWithIdentity.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/ItemWithIgnore.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/ItemWithRef.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/ItemWithSerializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/ItemWithView.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/User.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/UserWithIdentity.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/UserWithIgnore.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/UserWithRef.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/UserWithSerializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/UserWithView.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/jsonview/Views.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/main/java/com/ossez/jackson/deductionbasedpolymorphism/Character.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/main/java/com/ossez/jackson/deductionbasedpolymorphism/ControlledCharacter.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/main/java/com/ossez/jackson/deductionbasedpolymorphism/ImperialSpy.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/main/java/com/ossez/jackson/deductionbasedpolymorphism/King.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/main/java/com/ossez/jackson/deductionbasedpolymorphism/Knight.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/main/java/com/ossez/jackson/deductionbasedpolymorphism/NamedCharacter.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/main/java/com/ossez/jackson/domain/Person.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/main/java/com/ossez/jackson/format/User.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/main/java/com/ossez/jackson/jsonignorevstransient/Application.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/main/java/com/ossez/jackson/jsonignorevstransient/Person.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/main/java/com/ossez/jackson/jsonignorevstransient/User.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/main/java/com/ossez/jackson/jsonignorevstransient/UserRepository.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/main/java/com/ossez/jackson/jsonmerge/Keyboard.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/main/java/com/ossez/jackson/jsonmerge/ObjectWithMap.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/main/java/com/ossez/jackson/jsonmerge/ProgrammerAnnotated.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/main/java/com/ossez/jackson/jsonmerge/ProgrammerNotAnnotated.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/main/java/com/ossez/jackson/jsonview/Item.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/main/java/com/ossez/jackson/jsonview/MyBeanSerializerModifier.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/main/java/com/ossez/jackson/jsonview/UpperCasingWriter.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/main/java/com/ossez/jackson/jsonview/User.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/main/java/com/ossez/jackson/jsonview/Views.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/test/java/com/ossez/jackson/advancedannotations/AdvancedAnnotationsUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/test/java/com/ossez/jackson/advancedannotations/AppendBeans.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/test/java/com/ossez/jackson/advancedannotations/IdentityReferenceBeans.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/test/java/com/ossez/jackson/advancedannotations/NamingBean.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/test/java/com/ossez/jackson/advancedannotations/POJOBuilderBean.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/test/java/com/ossez/jackson/advancedannotations/PropertyDescriptionBean.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/test/java/com/ossez/jackson/advancedannotations/TypeIdBean.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/test/java/com/ossez/jackson/advancedannotations/TypeIdResolverStructure.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/test/java/com/ossez/jackson/bidirection/JacksonBidirectionRelationUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/test/java/com/ossez/jackson/deductionbasedpolymorphism/CaseInsensitiveInferenceUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/test/java/com/ossez/jackson/deductionbasedpolymorphism/ContainedInferenceUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/test/java/com/ossez/jackson/deductionbasedpolymorphism/JsonStringFormatterUtil.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/test/java/com/ossez/jackson/deductionbasedpolymorphism/SimpleInferenceUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/test/java/com/ossez/jackson/format/JsonFormatUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/test/java/com/ossez/jackson/jsonignorevstransient/PersonUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/test/java/com/ossez/jackson/jsonmerge/JsonMergeUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/test/java/com/ossez/jackson/jsonview/JacksonJsonViewUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-annotations/src/test/resources/application.properties (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/README.md (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/pom.xml (97%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/main/java/com/baeldung/jackson/booleanAsInt/Game.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/main/java/com/baeldung/jackson/booleanAsInt/GameAnnotatedByJsonFormat.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/main/java/com/baeldung/jackson/booleanAsInt/GameAnnotatedByJsonSerializeDeserialize.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/main/java/com/baeldung/jackson/booleanAsInt/NumericBooleanDeserializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/main/java/com/baeldung/jackson/booleanAsInt/NumericBooleanSerializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/main/java/com/baeldung/jackson/csv/JsonCsvConverter.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/main/java/com/baeldung/jackson/csv/OrderLine.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/main/java/com/baeldung/jackson/csv/OrderLineForCsv.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/main/java/com/baeldung/jackson/dynamicobject/Product.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/main/java/com/baeldung/jackson/dynamicobject/ProductJsonNode.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/main/java/com/baeldung/jackson/dynamicobject/ProductMap.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/main/java/com/baeldung/jackson/jsonurlreader/JsonUrlReader.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/main/java/com/baeldung/jackson/jsonurlreader/data/Example.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/main/java/com/baeldung/jackson/multiplefields/Weather.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/main/java/com/baeldung/jackson/snakecase/User.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/main/java/com/baeldung/jackson/snakecase/UserWithPropertyNames.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/main/java/com/baeldung/jackson/snakecase/UserWithSnakeStrategy.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/main/java/com/baeldung/jackson/tocollection/Book.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/main/java/com/baeldung/jackson/tocollection/JsonToCollectionUtil.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/main/java/com/baeldung/jackson/xmlToJson/Color.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/main/java/com/baeldung/jackson/xmlToJson/Flower.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/main/java/com/baeldung/jackson/yaml/Order.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/main/java/com/baeldung/jackson/yaml/OrderLine.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/main/java/com/ossez/jackson/csv/JsonCsvConverter.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/main/java/com/ossez/jackson/csv/OrderLine.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/main/java/com/ossez/jackson/csv/OrderLineForCsv.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/main/java/com/ossez/jackson/dynamicobject/Product.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/main/java/com/ossez/jackson/dynamicobject/ProductJsonNode.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/main/java/com/ossez/jackson/dynamicobject/ProductMap.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/main/java/com/ossez/jackson/multiplefields/Weather.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/main/java/com/ossez/jackson/tocollection/Book.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/main/java/com/ossez/jackson/tocollection/JsonToCollectionUtil.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/main/java/com/ossez/jackson/xmlToJson/Color.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/main/java/com/ossez/jackson/xmlToJson/Flower.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/main/java/com/ossez/jackson/yaml/Order.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/main/java/com/ossez/jackson/yaml/OrderLine.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/main/resources/csv/orderLines.csv (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/main/resources/csv/orderLines.json (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/main/resources/to-java-collection/books.json (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/main/resources/to-java-collection/books.xml (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/test/java/com/baeldung/jackson/booleanAsInt/BooleanAsIntegerUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/test/java/com/baeldung/jackson/csv/CsvUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/test/java/com/baeldung/jackson/dynamicobject/DynamicObjectDeserializationUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/test/java/com/baeldung/jackson/jsonurlreader/JsonMockServer.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/test/java/com/baeldung/jackson/jsonurlreader/JsonUrlReaderIntegrationTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/test/java/com/baeldung/jackson/multiplefields/MapMultipleFieldsToSingleFieldUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/test/java/com/baeldung/jackson/snakecase/SnakeCaseUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/test/java/com/baeldung/jackson/streaming/StreamingAPIUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/test/java/com/baeldung/jackson/tocollection/DeserializeToJavaCollectionUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/test/java/com/baeldung/jackson/tocollection/JsonToCollectionUtilUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/test/java/com/baeldung/jackson/xmlToJson/XmlToJsonUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/test/java/com/baeldung/jackson/yaml/YamlUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/test/java/com/ossez/jackson/csv/CsvUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/test/java/com/ossez/jackson/dynamicobject/DynamicObjectDeserializationUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/test/java/com/ossez/jackson/multiplefields/MapMultipleFieldsToSingleFieldUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/test/java/com/ossez/jackson/streaming/StreamingAPIUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/test/java/com/ossez/jackson/tocollection/DeserializeToJavaCollectionUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/test/java/com/ossez/jackson/tocollection/JsonToCollectionUtilUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/test/java/com/ossez/jackson/xmlToJson/XmlToJsonUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/test/java/com/ossez/jackson/yaml/YamlUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/test/resources/csv/expectedCsvFromJson.csv (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/test/resources/csv/expectedFormattedCsvFromJson.csv (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/test/resources/csv/expectedJsonFromCsv.json (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/test/resources/deserialize-dynamic-object/embedded.json (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/test/resources/deserialize-dynamic-object/flat.json (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions-2/src/test/resources/yaml/orderInput.yaml (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/README.md (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/pom.xml (96%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/date/CustomDateDeserializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/date/CustomDateSerializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/date/CustomDateTimeSerializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/date/CustomLocalDateTimeSerializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/date/Event.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/date/EventWithFormat.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/date/EventWithJodaTime.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/date/EventWithLocalDate.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/date/EventWithLocalDateTime.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/date/EventWithSerializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/City.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/Distance.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/customdeserializer/City.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/customdeserializer/CustomEnumDeserializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/customdeserializer/Distance.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/jsoncreator/City.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/jsoncreator/Distance.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/jsonproperty/City.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/jsonproperty/Distance.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/jsonvalue/City.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/jsonvalue/Distance.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/enums/serialization/Distance.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/enums/serialization/DistanceSerializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/enums/withEnum/DistanceEnumSimple.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/enums/withEnum/DistanceEnumWithJsonFormat.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/enums/withEnum/DistanceEnumWithValue.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/enums/withEnum/MyDtoWithEnumCustom.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/enums/withEnum/MyDtoWithEnumJsonFormat.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/field/MyDto.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/field/MyDtoAccessLevel.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/field/MyDtoWithGetter.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/field/MyDtoWithSetter.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/immutable/Employee.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/immutable/Person.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/map/ClassWithAMap.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/map/Fruit.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/map/MyPair.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/map/MyPairDeserializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/map/MyPairSerializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/mapnull/MyDto.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/mapnull/MyDtoNullKeySerializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/tocollection/MyDto.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/xml/Address.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/baeldung/jackson/xml/Person.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/date/CustomDateDeserializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/date/CustomDateSerializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/date/CustomDateTimeSerializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/date/CustomLocalDateTimeSerializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/date/Event.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/date/EventWithFormat.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/date/EventWithJodaTime.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/date/EventWithLocalDate.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/date/EventWithLocalDateTime.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/date/EventWithSerializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/City.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/Distance.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/customdeserializer/City.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/customdeserializer/CustomEnumDeserializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/customdeserializer/Distance.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/jsoncreator/City.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/jsoncreator/Distance.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/jsonproperty/City.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/jsonproperty/Distance.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/jsonvalue/City.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/jsonvalue/Distance.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/enums/serialization/Distance.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/enums/serialization/DistanceSerializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/enums/withEnum/DistanceEnumSimple.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/enums/withEnum/DistanceEnumWithJsonFormat.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/enums/withEnum/DistanceEnumWithValue.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/enums/withEnum/MyDtoWithEnumCustom.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/enums/withEnum/MyDtoWithEnumJsonFormat.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/field/MyDto.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/field/MyDtoAccessLevel.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/field/MyDtoWithGetter.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/field/MyDtoWithSetter.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/immutable/Employee.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/immutable/Person.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/map/ClassWithAMap.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/map/MyPair.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/map/MyPairDeserializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/map/MyPairSerializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/mapnull/MyDto.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/mapnull/MyDtoNullKeySerializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/tocollection/MyDto.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/xml/Address.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/main/java/com/ossez/jackson/xml/Person.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/test/java/com/baeldung/jackson/date/JacksonDateUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/test/java/com/baeldung/jackson/enums/deserialization/DefaultEnumDeserializationUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/test/java/com/baeldung/jackson/enums/deserialization/customdeserializer/EnumCustomDeserializationUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/test/java/com/baeldung/jackson/enums/deserialization/jsoncreator/EnumDeserializationUsingJsonCreatorUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/test/java/com/baeldung/jackson/enums/deserialization/jsonproperty/EnumDeserializationUsingJsonPropertyUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/test/java/com/baeldung/jackson/enums/deserialization/jsonvalue/EnumDeserializationUsingJsonValueUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/test/java/com/baeldung/jackson/enums/serialization/JacksonEnumSerializationUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/test/java/com/baeldung/jackson/enums/serialization/JacksonSerializationEnumsUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/test/java/com/baeldung/jackson/field/JacksonFieldUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/test/java/com/baeldung/jackson/immutable/ImmutableObjectDeserializationUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/test/java/com/baeldung/jackson/map/JacksonMapDeserializeUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/test/java/com/baeldung/jackson/map/JacksonMapSerializeUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/test/java/com/baeldung/jackson/map/MapWithJsonKeyValueUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/test/java/com/baeldung/jackson/mapnull/JacksonMapNullUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/test/java/com/baeldung/jackson/nested/DeserializeWithNestedPropertiesUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/test/java/com/baeldung/jackson/nested/Product.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/test/java/com/baeldung/jackson/nested/ProductDeserializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/test/java/com/baeldung/jackson/tocollection/JacksonCollectionDeserializationUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/test/java/com/baeldung/jackson/tojsonnode/StringToJsonNodeUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/test/java/com/baeldung/jackson/xml/XMLSerializeDeserializeUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/test/java/com/ossez/jackson/date/JacksonDateUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/test/java/com/ossez/jackson/enums/deserialization/DefaultEnumDeserializationUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/test/java/com/ossez/jackson/enums/deserialization/customdeserializer/EnumCustomDeserializationUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/test/java/com/ossez/jackson/enums/deserialization/jsoncreator/EnumDeserializationUsingJsonCreatorUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/test/java/com/ossez/jackson/enums/deserialization/jsonproperty/EnumDeserializationUsingJsonPropertyUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/test/java/com/ossez/jackson/enums/deserialization/jsonvalue/EnumDeserializationUsingJsonValueUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/test/java/com/ossez/jackson/enums/serialization/JacksonEnumSerializationUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/test/java/com/ossez/jackson/enums/serialization/JacksonSerializationEnumsUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/test/java/com/ossez/jackson/field/JacksonFieldUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/test/java/com/ossez/jackson/immutable/ImmutableObjectDeserializationUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/test/java/com/ossez/jackson/map/JacksonMapDeserializeUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/test/java/com/ossez/jackson/map/JacksonMapSerializeUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/test/java/com/ossez/jackson/mapnull/JacksonMapNullUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/test/java/com/ossez/jackson/nested/DeserializeWithNestedPropertiesUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/test/java/com/ossez/jackson/nested/Product.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/test/java/com/ossez/jackson/nested/ProductDeserializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/test/java/com/ossez/jackson/tocollection/JacksonCollectionDeserializationUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/test/java/com/ossez/jackson/tojsonnode/StringToJsonNodeUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/test/java/com/ossez/jackson/xml/XMLSerializeDeserializeUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-conversions/src/test/resources/simple_bean.xml (100%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/README.md (100%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/javatypefromclassinjava/JavaTypeFromClassUnitTest.java (96%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/pom.xml (96%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/src/main/java/com/baeldung/defaultserializercustomserializer/File.java (100%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/src/main/java/com/baeldung/defaultserializercustomserializer/Folder.java (100%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/src/main/java/com/baeldung/defaultserializercustomserializer/FolderBeanSerializerModifier.java (100%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/src/main/java/com/baeldung/defaultserializercustomserializer/FolderSerializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/src/main/java/com/baeldung/defaultserializercustomserializer/FolderSerializerWithCallingOwnSerializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/src/main/java/com/baeldung/defaultserializercustomserializer/FolderSerializerWithDefaultSerializerStored.java (100%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/src/main/java/com/baeldung/defaultserializercustomserializer/FolderSerializerWithInternalObjectMapper.java (100%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/src/main/java/com/baeldung/defaultserializercustomserializer/FolderSerializerWithSerializerProvider.java (100%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/ActorJackson.java (100%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/Item.java (100%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/ItemDeserializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/ItemDeserializerOnClass.java (100%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/ItemWithDeserializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/ItemWithWrappedUser.java (95%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/Movie.java (100%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/User.java (100%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/Wrapper.java (93%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/WrapperDeserializer.java (97%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/src/main/java/com/baeldung/offsetdatetime/Main.java (100%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/src/main/java/com/baeldung/offsetdatetime/OffsetDateTimeDeserializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/src/main/java/com/baeldung/offsetdatetime/OffsetDateTimeSerializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/src/main/java/com/baeldung/offsetdatetime/User.java (100%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/src/main/java/com/baeldung/serialization/Item.java (100%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/src/main/java/com/baeldung/serialization/ItemSerializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/src/main/java/com/baeldung/serialization/ItemSerializerOnClass.java (100%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/src/main/java/com/baeldung/serialization/ItemWithSerializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/src/main/java/com/baeldung/serialization/User.java (100%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/src/main/java/com/baeldung/skipfields/Address.java (100%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/src/main/java/com/baeldung/skipfields/Hidable.java (100%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/src/main/java/com/baeldung/skipfields/HidableSerializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/src/main/java/com/baeldung/skipfields/MyDtoWithFilter.java (100%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/src/main/java/com/baeldung/skipfields/Person.java (100%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/src/test/java/com/baeldung/defaultserializercustomserializer/CallingDefaultSerializerUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/src/test/java/com/baeldung/deserialization/CustomDeserializationUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/src/test/java/com/baeldung/offsetdatetime/MainUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/src/test/java/com/baeldung/serialization/CustomSerializationUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/src/test/java/com/baeldung/skipfields/IgnoreFieldsWithFilterUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-custom-conversions/src/test/java/com/baeldung/skipfields/JacksonDynamicIgnoreUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-exceptions/README.md (100%) rename {jackson-modules => libraries-jackson}/jackson-exceptions/pom.xml (93%) rename {jackson-modules => libraries-jackson}/jackson-exceptions/src/main/java/com/baeldung/exceptions/Contact.java (100%) rename {jackson-modules => libraries-jackson}/jackson-exceptions/src/main/java/com/baeldung/exceptions/EmptyObject.java (100%) rename {jackson-modules => libraries-jackson}/jackson-exceptions/src/main/java/com/baeldung/exceptions/Person.java (100%) rename {jackson-modules => libraries-jackson}/jackson-exceptions/src/main/java/com/baeldung/exceptions/PersonContact.java (100%) rename {jackson-modules => libraries-jackson}/jackson-exceptions/src/main/java/com/baeldung/exceptions/User.java (100%) rename {jackson-modules => libraries-jackson}/jackson-exceptions/src/main/java/com/baeldung/exceptions/UserWithConflict.java (100%) rename {jackson-modules => libraries-jackson}/jackson-exceptions/src/main/java/com/baeldung/exceptions/UserWithNoDefaultConstructor.java (100%) rename {jackson-modules => libraries-jackson}/jackson-exceptions/src/main/java/com/baeldung/exceptions/UserWithPrivateFields.java (100%) rename {jackson-modules => libraries-jackson}/jackson-exceptions/src/main/java/com/baeldung/exceptions/UserWithRoot.java (100%) rename {jackson-modules => libraries-jackson}/jackson-exceptions/src/main/java/com/baeldung/exceptions/Zoo.java (100%) rename {jackson-modules => libraries-jackson}/jackson-exceptions/src/main/java/com/baeldung/exceptions/ZooConfigured.java (100%) rename {jackson-modules => libraries-jackson}/jackson-exceptions/src/main/java/com/baeldung/mappingexception/Country.java (100%) rename {jackson-modules => libraries-jackson}/jackson-exceptions/src/main/java/com/baeldung/mappingexception/MyDtoNoAccessors.java (100%) rename {jackson-modules => libraries-jackson}/jackson-exceptions/src/main/java/com/baeldung/mappingexception/MyDtoNoAccessorsAndFieldVisibility.java (100%) rename {jackson-modules => libraries-jackson}/jackson-exceptions/src/main/java/com/baeldung/mismatchedinputexception/Animals.java (100%) rename {jackson-modules => libraries-jackson}/jackson-exceptions/src/main/java/com/baeldung/mismatchedinputexception/Book.java (100%) rename {jackson-modules => libraries-jackson}/jackson-exceptions/src/test/java/com/baeldung/exceptions/JacksonExceptionsUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-exceptions/src/test/java/com/baeldung/mappingexception/JacksonMappingExceptionUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-exceptions/src/test/java/com/baeldung/mismatchedinputexception/MismatchedinputExceptionUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-jr/README.md (100%) rename {jackson-modules => libraries-jackson}/jackson-jr/pom.xml (96%) rename {jackson-modules => libraries-jackson}/jackson-jr/src/main/java/com/ossez/jacksonjr/CustomDateDeserializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson-jr/src/main/java/com/ossez/jacksonjr/CustomDateSerializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson-jr/src/main/java/com/ossez/jacksonjr/JacksonJrFeatures.java (100%) rename {jackson-modules => libraries-jackson}/jackson-jr/src/main/java/com/ossez/jacksonjr/MyHandlerProvider.java (100%) rename {jackson-modules => libraries-jackson}/jackson-jr/src/main/java/com/ossez/jacksonjr/Person.java (100%) rename {jackson-modules => libraries-jackson}/jackson-jr/src/test/java/com/ossez/jacksonjr/CreateJSONTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-jr/src/test/java/com/ossez/jacksonjr/JacksonJrFeaturesUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-polymorphic-deserialization/README.md (100%) rename {jackson-modules => libraries-jackson}/jackson-polymorphic-deserialization/pom.xml (96%) rename {jackson-modules => libraries-jackson}/jackson-polymorphic-deserialization/src/main/java/com/ossez/jackson/polymorphic/deserialization/reflection/Vehicle.java (100%) rename {jackson-modules => libraries-jackson}/jackson-polymorphic-deserialization/src/main/java/com/ossez/jackson/polymorphic/deserialization/reflection/VehicleSubType.java (100%) rename {jackson-modules => libraries-jackson}/jackson-polymorphic-deserialization/src/main/java/com/ossez/jackson/polymorphic/deserialization/typeHandlingAnnotations/Vehicle.java (100%) rename {jackson-modules => libraries-jackson}/jackson-polymorphic-deserialization/src/test/java/com/ossez/jackson/polymorphic/deserialization/reflection/ReflectionUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson-polymorphic-deserialization/src/test/java/com/ossez/jackson/polymorphic/deserialization/typeHandlingAnnotations/TypeHandlingAnnotationsUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson/README.md (82%) rename {jackson-modules => libraries-jackson}/jackson/pom.xml (97%) rename {jackson-modules => libraries-jackson}/jackson/src/main/java/com/ossez/jackson/defaultvalues/NonAnnotatedDefaultValue.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/main/java/com/ossez/jackson/defaultvalues/NullsSkipDefaultValue.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/main/java/com/ossez/jackson/defaultvalues/SetterDefaultValue.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/main/java/com/ossez/jackson/deserialization/jacksoninject/Person.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/main/java/com/ossez/jackson/deserialization/jsonanysetter/Inventory.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/main/java/com/ossez/jackson/deserialization/jsondeserialize/Book.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/main/java/com/ossez/jackson/deserialization/jsondeserialize/CustomDateDeserializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/main/java/com/ossez/jackson/deserialization/jsongeneric/JsonResponse.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/main/java/com/ossez/jackson/deserialization/jsongeneric/User.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/main/java/com/ossez/jackson/domain/Person.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/main/java/com/ossez/jackson/inheritance/Event.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/main/java/com/ossez/jackson/inheritance/IgnoranceAnnotationStructure.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/main/java/com/ossez/jackson/inheritance/IgnoranceMixinOrIntrospection.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/main/java/com/ossez/jackson/inheritance/ItemIdAddedToUser.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/main/java/com/ossez/jackson/inheritance/ItemIdRemovedFromUser.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/main/java/com/ossez/jackson/inheritance/SubTypeConstructorStructure.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/main/java/com/ossez/jackson/inheritance/SubTypeConversionStructure.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/main/java/com/ossez/jackson/inheritance/TypeInfoAnnotatedStructure.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/main/java/com/ossez/jackson/inheritance/TypeInfoStructure.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/main/java/com/ossez/jackson/jacksonvsgson/ActorJackson.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/main/java/com/ossez/jackson/jacksonvsgson/ActorJacksonSerializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/main/java/com/ossez/jackson/jacksonvsgson/Movie.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/main/java/com/ossez/jackson/jacksonvsgson/MovieWithNullValue.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/main/java/com/ossez/jackson/jsonnode/GetAllKeysFromJSON.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/main/java/com/ossez/jackson/node/JsonNodeIterator.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/main/java/com/ossez/jackson/optionalwithjackson/Book.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/main/resources/example1.json (100%) rename {jackson-modules => libraries-jackson}/jackson/src/main/resources/example2.json (100%) rename {jackson-modules => libraries-jackson}/jackson/src/main/resources/logback.xml (100%) rename {jackson-modules => libraries-jackson}/jackson/src/test/java/com/ossez/jackson/defaultvalues/DefaultValuesUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/test/java/com/ossez/jackson/deserialization/jsongeneric/GenericTypeDeserializerUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/test/java/com/ossez/jackson/dtos/Address.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/test/java/com/ossez/jackson/dtos/MyDto.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/test/java/com/ossez/jackson/dtos/Person.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/test/java/com/ossez/jackson/dtos/User.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/test/java/com/ossez/jackson/inheritance/IgnoranceUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/test/java/com/ossez/jackson/inheritance/ItemIdRemovedFromUserUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/test/java/com/ossez/jackson/inheritance/SubTypeHandlingUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/test/java/com/ossez/jackson/inheritance/TypeInfoInclusionUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/test/java/com/ossez/jackson/jacksonvsgson/JacksonDeserializeUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/test/java/com/ossez/jackson/jacksonvsgson/JacksonSerializeUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/test/java/com/ossez/jackson/jsoncompare/JsonCompareUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/test/java/com/ossez/jackson/node/ExampleStructure.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/test/java/com/ossez/jackson/node/JsonNodeIteratorUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/test/java/com/ossez/jackson/node/NodeBean.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/test/java/com/ossez/jackson/node/NodeOperationUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/test/java/com/ossez/jackson/optionalwithjackson/OptionalTypeUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/test/java/com/ossez/jackson/sandbox/JacksonPrettyPrintUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/test/java/com/ossez/jackson/sandbox/SandboxUnitTest.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/test/java/com/ossez/jackson/sandbox/TestElement.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/test/java/com/ossez/jackson/test/UnitTestSuite.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/test/java/com/ossez/jackson/try1/IEntity.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/test/java/com/ossez/jackson/try1/RestLoaderRequest.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/test/java/com/ossez/jackson/try1/RestLoaderRequestDeserializer.java (100%) rename {jackson-modules => libraries-jackson}/jackson/src/test/resources/author-jsonpropertyorder-schema.json (100%) rename {jackson-modules => libraries-jackson}/jackson/src/test/resources/node_example-1.json (100%) rename {jackson-modules => libraries-jackson}/jackson/src/test/resources/node_example.json (100%) rename {jackson-modules => libraries-jackson}/pom.xml (97%) diff --git a/.idea/encodings.xml b/.idea/encodings.xml index 77e6029620..f8b10f84d4 100644 --- a/.idea/encodings.xml +++ b/.idea/encodings.xml @@ -63,24 +63,24 @@ - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + diff --git a/jackson-modules/jackson-annotations/README.md b/libraries-jackson/jackson-annotations/README.md similarity index 100% rename from jackson-modules/jackson-annotations/README.md rename to libraries-jackson/jackson-annotations/README.md diff --git a/jackson-modules/jackson-annotations/pom.xml b/libraries-jackson/jackson-annotations/pom.xml similarity index 96% rename from jackson-modules/jackson-annotations/pom.xml rename to libraries-jackson/jackson-annotations/pom.xml index 0da73e5791..5ca28cc1e8 100644 --- a/jackson-modules/jackson-annotations/pom.xml +++ b/libraries-jackson/jackson-annotations/pom.xml @@ -9,7 +9,7 @@ com.ossez - jackson-modules + libraries-jackson 0.0.2-SNAPSHOT diff --git a/jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/CustomListDeserializer.java b/libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/CustomListDeserializer.java similarity index 100% rename from jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/CustomListDeserializer.java rename to libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/CustomListDeserializer.java diff --git a/jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/CustomListSerializer.java b/libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/CustomListSerializer.java similarity index 100% rename from jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/CustomListSerializer.java rename to libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/CustomListSerializer.java diff --git a/jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/Item.java b/libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/Item.java similarity index 100% rename from jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/Item.java rename to libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/Item.java diff --git a/jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/ItemWithIdentity.java b/libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/ItemWithIdentity.java similarity index 100% rename from jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/ItemWithIdentity.java rename to libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/ItemWithIdentity.java diff --git a/jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/ItemWithIgnore.java b/libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/ItemWithIgnore.java similarity index 100% rename from jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/ItemWithIgnore.java rename to libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/ItemWithIgnore.java diff --git a/jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/ItemWithRef.java b/libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/ItemWithRef.java similarity index 100% rename from jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/ItemWithRef.java rename to libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/ItemWithRef.java diff --git a/jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/ItemWithSerializer.java b/libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/ItemWithSerializer.java similarity index 100% rename from jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/ItemWithSerializer.java rename to libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/ItemWithSerializer.java diff --git a/jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/ItemWithView.java b/libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/ItemWithView.java similarity index 100% rename from jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/ItemWithView.java rename to libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/ItemWithView.java diff --git a/jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/User.java b/libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/User.java similarity index 100% rename from jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/User.java rename to libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/User.java diff --git a/jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/UserWithIdentity.java b/libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/UserWithIdentity.java similarity index 100% rename from jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/UserWithIdentity.java rename to libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/UserWithIdentity.java diff --git a/jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/UserWithIgnore.java b/libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/UserWithIgnore.java similarity index 100% rename from jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/UserWithIgnore.java rename to libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/UserWithIgnore.java diff --git a/jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/UserWithRef.java b/libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/UserWithRef.java similarity index 100% rename from jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/UserWithRef.java rename to libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/UserWithRef.java diff --git a/jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/UserWithSerializer.java b/libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/UserWithSerializer.java similarity index 100% rename from jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/UserWithSerializer.java rename to libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/UserWithSerializer.java diff --git a/jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/UserWithView.java b/libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/UserWithView.java similarity index 100% rename from jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/UserWithView.java rename to libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/UserWithView.java diff --git a/jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/jsonview/Views.java b/libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/jsonview/Views.java similarity index 100% rename from jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/jsonview/Views.java rename to libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/bidirection/jsonview/Views.java diff --git a/jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/deductionbasedpolymorphism/Character.java b/libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/deductionbasedpolymorphism/Character.java similarity index 100% rename from jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/deductionbasedpolymorphism/Character.java rename to libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/deductionbasedpolymorphism/Character.java diff --git a/jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/deductionbasedpolymorphism/ControlledCharacter.java b/libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/deductionbasedpolymorphism/ControlledCharacter.java similarity index 100% rename from jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/deductionbasedpolymorphism/ControlledCharacter.java rename to libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/deductionbasedpolymorphism/ControlledCharacter.java diff --git a/jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/deductionbasedpolymorphism/ImperialSpy.java b/libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/deductionbasedpolymorphism/ImperialSpy.java similarity index 100% rename from jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/deductionbasedpolymorphism/ImperialSpy.java rename to libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/deductionbasedpolymorphism/ImperialSpy.java diff --git a/jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/deductionbasedpolymorphism/King.java b/libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/deductionbasedpolymorphism/King.java similarity index 100% rename from jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/deductionbasedpolymorphism/King.java rename to libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/deductionbasedpolymorphism/King.java diff --git a/jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/deductionbasedpolymorphism/Knight.java b/libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/deductionbasedpolymorphism/Knight.java similarity index 100% rename from jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/deductionbasedpolymorphism/Knight.java rename to libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/deductionbasedpolymorphism/Knight.java diff --git a/jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/deductionbasedpolymorphism/NamedCharacter.java b/libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/deductionbasedpolymorphism/NamedCharacter.java similarity index 100% rename from jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/deductionbasedpolymorphism/NamedCharacter.java rename to libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/deductionbasedpolymorphism/NamedCharacter.java diff --git a/jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/domain/Person.java b/libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/domain/Person.java similarity index 100% rename from jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/domain/Person.java rename to libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/domain/Person.java diff --git a/jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/format/User.java b/libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/format/User.java similarity index 100% rename from jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/format/User.java rename to libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/format/User.java diff --git a/jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/jsonignorevstransient/Application.java b/libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/jsonignorevstransient/Application.java similarity index 100% rename from jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/jsonignorevstransient/Application.java rename to libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/jsonignorevstransient/Application.java diff --git a/jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/jsonignorevstransient/Person.java b/libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/jsonignorevstransient/Person.java similarity index 100% rename from jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/jsonignorevstransient/Person.java rename to libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/jsonignorevstransient/Person.java diff --git a/jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/jsonignorevstransient/User.java b/libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/jsonignorevstransient/User.java similarity index 100% rename from jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/jsonignorevstransient/User.java rename to libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/jsonignorevstransient/User.java diff --git a/jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/jsonignorevstransient/UserRepository.java b/libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/jsonignorevstransient/UserRepository.java similarity index 100% rename from jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/jsonignorevstransient/UserRepository.java rename to libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/jsonignorevstransient/UserRepository.java diff --git a/jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/jsonmerge/Keyboard.java b/libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/jsonmerge/Keyboard.java similarity index 100% rename from jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/jsonmerge/Keyboard.java rename to libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/jsonmerge/Keyboard.java diff --git a/jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/jsonmerge/ObjectWithMap.java b/libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/jsonmerge/ObjectWithMap.java similarity index 100% rename from jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/jsonmerge/ObjectWithMap.java rename to libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/jsonmerge/ObjectWithMap.java diff --git a/jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/jsonmerge/ProgrammerAnnotated.java b/libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/jsonmerge/ProgrammerAnnotated.java similarity index 100% rename from jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/jsonmerge/ProgrammerAnnotated.java rename to libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/jsonmerge/ProgrammerAnnotated.java diff --git a/jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/jsonmerge/ProgrammerNotAnnotated.java b/libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/jsonmerge/ProgrammerNotAnnotated.java similarity index 100% rename from jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/jsonmerge/ProgrammerNotAnnotated.java rename to libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/jsonmerge/ProgrammerNotAnnotated.java diff --git a/jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/jsonview/Item.java b/libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/jsonview/Item.java similarity index 100% rename from jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/jsonview/Item.java rename to libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/jsonview/Item.java diff --git a/jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/jsonview/MyBeanSerializerModifier.java b/libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/jsonview/MyBeanSerializerModifier.java similarity index 100% rename from jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/jsonview/MyBeanSerializerModifier.java rename to libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/jsonview/MyBeanSerializerModifier.java diff --git a/jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/jsonview/UpperCasingWriter.java b/libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/jsonview/UpperCasingWriter.java similarity index 100% rename from jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/jsonview/UpperCasingWriter.java rename to libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/jsonview/UpperCasingWriter.java diff --git a/jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/jsonview/User.java b/libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/jsonview/User.java similarity index 100% rename from jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/jsonview/User.java rename to libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/jsonview/User.java diff --git a/jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/jsonview/Views.java b/libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/jsonview/Views.java similarity index 100% rename from jackson-modules/jackson-annotations/src/main/java/com/ossez/jackson/jsonview/Views.java rename to libraries-jackson/jackson-annotations/src/main/java/com/ossez/jackson/jsonview/Views.java diff --git a/jackson-modules/jackson-annotations/src/test/java/com/ossez/jackson/advancedannotations/AdvancedAnnotationsUnitTest.java b/libraries-jackson/jackson-annotations/src/test/java/com/ossez/jackson/advancedannotations/AdvancedAnnotationsUnitTest.java similarity index 100% rename from jackson-modules/jackson-annotations/src/test/java/com/ossez/jackson/advancedannotations/AdvancedAnnotationsUnitTest.java rename to libraries-jackson/jackson-annotations/src/test/java/com/ossez/jackson/advancedannotations/AdvancedAnnotationsUnitTest.java diff --git a/jackson-modules/jackson-annotations/src/test/java/com/ossez/jackson/advancedannotations/AppendBeans.java b/libraries-jackson/jackson-annotations/src/test/java/com/ossez/jackson/advancedannotations/AppendBeans.java similarity index 100% rename from jackson-modules/jackson-annotations/src/test/java/com/ossez/jackson/advancedannotations/AppendBeans.java rename to libraries-jackson/jackson-annotations/src/test/java/com/ossez/jackson/advancedannotations/AppendBeans.java diff --git a/jackson-modules/jackson-annotations/src/test/java/com/ossez/jackson/advancedannotations/IdentityReferenceBeans.java b/libraries-jackson/jackson-annotations/src/test/java/com/ossez/jackson/advancedannotations/IdentityReferenceBeans.java similarity index 100% rename from jackson-modules/jackson-annotations/src/test/java/com/ossez/jackson/advancedannotations/IdentityReferenceBeans.java rename to libraries-jackson/jackson-annotations/src/test/java/com/ossez/jackson/advancedannotations/IdentityReferenceBeans.java diff --git a/jackson-modules/jackson-annotations/src/test/java/com/ossez/jackson/advancedannotations/NamingBean.java b/libraries-jackson/jackson-annotations/src/test/java/com/ossez/jackson/advancedannotations/NamingBean.java similarity index 100% rename from jackson-modules/jackson-annotations/src/test/java/com/ossez/jackson/advancedannotations/NamingBean.java rename to libraries-jackson/jackson-annotations/src/test/java/com/ossez/jackson/advancedannotations/NamingBean.java diff --git a/jackson-modules/jackson-annotations/src/test/java/com/ossez/jackson/advancedannotations/POJOBuilderBean.java b/libraries-jackson/jackson-annotations/src/test/java/com/ossez/jackson/advancedannotations/POJOBuilderBean.java similarity index 100% rename from jackson-modules/jackson-annotations/src/test/java/com/ossez/jackson/advancedannotations/POJOBuilderBean.java rename to libraries-jackson/jackson-annotations/src/test/java/com/ossez/jackson/advancedannotations/POJOBuilderBean.java diff --git a/jackson-modules/jackson-annotations/src/test/java/com/ossez/jackson/advancedannotations/PropertyDescriptionBean.java b/libraries-jackson/jackson-annotations/src/test/java/com/ossez/jackson/advancedannotations/PropertyDescriptionBean.java similarity index 100% rename from jackson-modules/jackson-annotations/src/test/java/com/ossez/jackson/advancedannotations/PropertyDescriptionBean.java rename to libraries-jackson/jackson-annotations/src/test/java/com/ossez/jackson/advancedannotations/PropertyDescriptionBean.java diff --git a/jackson-modules/jackson-annotations/src/test/java/com/ossez/jackson/advancedannotations/TypeIdBean.java b/libraries-jackson/jackson-annotations/src/test/java/com/ossez/jackson/advancedannotations/TypeIdBean.java similarity index 100% rename from jackson-modules/jackson-annotations/src/test/java/com/ossez/jackson/advancedannotations/TypeIdBean.java rename to libraries-jackson/jackson-annotations/src/test/java/com/ossez/jackson/advancedannotations/TypeIdBean.java diff --git a/jackson-modules/jackson-annotations/src/test/java/com/ossez/jackson/advancedannotations/TypeIdResolverStructure.java b/libraries-jackson/jackson-annotations/src/test/java/com/ossez/jackson/advancedannotations/TypeIdResolverStructure.java similarity index 100% rename from jackson-modules/jackson-annotations/src/test/java/com/ossez/jackson/advancedannotations/TypeIdResolverStructure.java rename to libraries-jackson/jackson-annotations/src/test/java/com/ossez/jackson/advancedannotations/TypeIdResolverStructure.java diff --git a/jackson-modules/jackson-annotations/src/test/java/com/ossez/jackson/bidirection/JacksonBidirectionRelationUnitTest.java b/libraries-jackson/jackson-annotations/src/test/java/com/ossez/jackson/bidirection/JacksonBidirectionRelationUnitTest.java similarity index 100% rename from jackson-modules/jackson-annotations/src/test/java/com/ossez/jackson/bidirection/JacksonBidirectionRelationUnitTest.java rename to libraries-jackson/jackson-annotations/src/test/java/com/ossez/jackson/bidirection/JacksonBidirectionRelationUnitTest.java diff --git a/jackson-modules/jackson-annotations/src/test/java/com/ossez/jackson/deductionbasedpolymorphism/CaseInsensitiveInferenceUnitTest.java b/libraries-jackson/jackson-annotations/src/test/java/com/ossez/jackson/deductionbasedpolymorphism/CaseInsensitiveInferenceUnitTest.java similarity index 100% rename from jackson-modules/jackson-annotations/src/test/java/com/ossez/jackson/deductionbasedpolymorphism/CaseInsensitiveInferenceUnitTest.java rename to libraries-jackson/jackson-annotations/src/test/java/com/ossez/jackson/deductionbasedpolymorphism/CaseInsensitiveInferenceUnitTest.java diff --git a/jackson-modules/jackson-annotations/src/test/java/com/ossez/jackson/deductionbasedpolymorphism/ContainedInferenceUnitTest.java b/libraries-jackson/jackson-annotations/src/test/java/com/ossez/jackson/deductionbasedpolymorphism/ContainedInferenceUnitTest.java similarity index 100% rename from jackson-modules/jackson-annotations/src/test/java/com/ossez/jackson/deductionbasedpolymorphism/ContainedInferenceUnitTest.java rename to libraries-jackson/jackson-annotations/src/test/java/com/ossez/jackson/deductionbasedpolymorphism/ContainedInferenceUnitTest.java diff --git a/jackson-modules/jackson-annotations/src/test/java/com/ossez/jackson/deductionbasedpolymorphism/JsonStringFormatterUtil.java b/libraries-jackson/jackson-annotations/src/test/java/com/ossez/jackson/deductionbasedpolymorphism/JsonStringFormatterUtil.java similarity index 100% rename from jackson-modules/jackson-annotations/src/test/java/com/ossez/jackson/deductionbasedpolymorphism/JsonStringFormatterUtil.java rename to libraries-jackson/jackson-annotations/src/test/java/com/ossez/jackson/deductionbasedpolymorphism/JsonStringFormatterUtil.java diff --git a/jackson-modules/jackson-annotations/src/test/java/com/ossez/jackson/deductionbasedpolymorphism/SimpleInferenceUnitTest.java b/libraries-jackson/jackson-annotations/src/test/java/com/ossez/jackson/deductionbasedpolymorphism/SimpleInferenceUnitTest.java similarity index 100% rename from jackson-modules/jackson-annotations/src/test/java/com/ossez/jackson/deductionbasedpolymorphism/SimpleInferenceUnitTest.java rename to libraries-jackson/jackson-annotations/src/test/java/com/ossez/jackson/deductionbasedpolymorphism/SimpleInferenceUnitTest.java diff --git a/jackson-modules/jackson-annotations/src/test/java/com/ossez/jackson/format/JsonFormatUnitTest.java b/libraries-jackson/jackson-annotations/src/test/java/com/ossez/jackson/format/JsonFormatUnitTest.java similarity index 100% rename from jackson-modules/jackson-annotations/src/test/java/com/ossez/jackson/format/JsonFormatUnitTest.java rename to libraries-jackson/jackson-annotations/src/test/java/com/ossez/jackson/format/JsonFormatUnitTest.java diff --git a/jackson-modules/jackson-annotations/src/test/java/com/ossez/jackson/jsonignorevstransient/PersonUnitTest.java b/libraries-jackson/jackson-annotations/src/test/java/com/ossez/jackson/jsonignorevstransient/PersonUnitTest.java similarity index 100% rename from jackson-modules/jackson-annotations/src/test/java/com/ossez/jackson/jsonignorevstransient/PersonUnitTest.java rename to libraries-jackson/jackson-annotations/src/test/java/com/ossez/jackson/jsonignorevstransient/PersonUnitTest.java diff --git a/jackson-modules/jackson-annotations/src/test/java/com/ossez/jackson/jsonmerge/JsonMergeUnitTest.java b/libraries-jackson/jackson-annotations/src/test/java/com/ossez/jackson/jsonmerge/JsonMergeUnitTest.java similarity index 100% rename from jackson-modules/jackson-annotations/src/test/java/com/ossez/jackson/jsonmerge/JsonMergeUnitTest.java rename to libraries-jackson/jackson-annotations/src/test/java/com/ossez/jackson/jsonmerge/JsonMergeUnitTest.java diff --git a/jackson-modules/jackson-annotations/src/test/java/com/ossez/jackson/jsonview/JacksonJsonViewUnitTest.java b/libraries-jackson/jackson-annotations/src/test/java/com/ossez/jackson/jsonview/JacksonJsonViewUnitTest.java similarity index 100% rename from jackson-modules/jackson-annotations/src/test/java/com/ossez/jackson/jsonview/JacksonJsonViewUnitTest.java rename to libraries-jackson/jackson-annotations/src/test/java/com/ossez/jackson/jsonview/JacksonJsonViewUnitTest.java diff --git a/jackson-modules/jackson-annotations/src/test/resources/application.properties b/libraries-jackson/jackson-annotations/src/test/resources/application.properties similarity index 100% rename from jackson-modules/jackson-annotations/src/test/resources/application.properties rename to libraries-jackson/jackson-annotations/src/test/resources/application.properties diff --git a/jackson-modules/jackson-conversions-2/README.md b/libraries-jackson/jackson-conversions-2/README.md similarity index 100% rename from jackson-modules/jackson-conversions-2/README.md rename to libraries-jackson/jackson-conversions-2/README.md diff --git a/jackson-modules/jackson-conversions-2/pom.xml b/libraries-jackson/jackson-conversions-2/pom.xml similarity index 97% rename from jackson-modules/jackson-conversions-2/pom.xml rename to libraries-jackson/jackson-conversions-2/pom.xml index 58de10fbd9..310358a8f6 100644 --- a/jackson-modules/jackson-conversions-2/pom.xml +++ b/libraries-jackson/jackson-conversions-2/pom.xml @@ -9,7 +9,7 @@ com.ossez - jackson-modules + libraries-jackson 0.0.2-SNAPSHOT diff --git a/jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/booleanAsInt/Game.java b/libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/booleanAsInt/Game.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/booleanAsInt/Game.java rename to libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/booleanAsInt/Game.java diff --git a/jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/booleanAsInt/GameAnnotatedByJsonFormat.java b/libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/booleanAsInt/GameAnnotatedByJsonFormat.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/booleanAsInt/GameAnnotatedByJsonFormat.java rename to libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/booleanAsInt/GameAnnotatedByJsonFormat.java diff --git a/jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/booleanAsInt/GameAnnotatedByJsonSerializeDeserialize.java b/libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/booleanAsInt/GameAnnotatedByJsonSerializeDeserialize.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/booleanAsInt/GameAnnotatedByJsonSerializeDeserialize.java rename to libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/booleanAsInt/GameAnnotatedByJsonSerializeDeserialize.java diff --git a/jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/booleanAsInt/NumericBooleanDeserializer.java b/libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/booleanAsInt/NumericBooleanDeserializer.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/booleanAsInt/NumericBooleanDeserializer.java rename to libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/booleanAsInt/NumericBooleanDeserializer.java diff --git a/jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/booleanAsInt/NumericBooleanSerializer.java b/libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/booleanAsInt/NumericBooleanSerializer.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/booleanAsInt/NumericBooleanSerializer.java rename to libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/booleanAsInt/NumericBooleanSerializer.java diff --git a/jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/csv/JsonCsvConverter.java b/libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/csv/JsonCsvConverter.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/csv/JsonCsvConverter.java rename to libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/csv/JsonCsvConverter.java diff --git a/jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/csv/OrderLine.java b/libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/csv/OrderLine.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/csv/OrderLine.java rename to libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/csv/OrderLine.java diff --git a/jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/csv/OrderLineForCsv.java b/libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/csv/OrderLineForCsv.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/csv/OrderLineForCsv.java rename to libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/csv/OrderLineForCsv.java diff --git a/jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/dynamicobject/Product.java b/libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/dynamicobject/Product.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/dynamicobject/Product.java rename to libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/dynamicobject/Product.java diff --git a/jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/dynamicobject/ProductJsonNode.java b/libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/dynamicobject/ProductJsonNode.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/dynamicobject/ProductJsonNode.java rename to libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/dynamicobject/ProductJsonNode.java diff --git a/jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/dynamicobject/ProductMap.java b/libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/dynamicobject/ProductMap.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/dynamicobject/ProductMap.java rename to libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/dynamicobject/ProductMap.java diff --git a/jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/jsonurlreader/JsonUrlReader.java b/libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/jsonurlreader/JsonUrlReader.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/jsonurlreader/JsonUrlReader.java rename to libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/jsonurlreader/JsonUrlReader.java diff --git a/jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/jsonurlreader/data/Example.java b/libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/jsonurlreader/data/Example.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/jsonurlreader/data/Example.java rename to libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/jsonurlreader/data/Example.java diff --git a/jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/multiplefields/Weather.java b/libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/multiplefields/Weather.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/multiplefields/Weather.java rename to libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/multiplefields/Weather.java diff --git a/jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/snakecase/User.java b/libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/snakecase/User.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/snakecase/User.java rename to libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/snakecase/User.java diff --git a/jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/snakecase/UserWithPropertyNames.java b/libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/snakecase/UserWithPropertyNames.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/snakecase/UserWithPropertyNames.java rename to libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/snakecase/UserWithPropertyNames.java diff --git a/jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/snakecase/UserWithSnakeStrategy.java b/libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/snakecase/UserWithSnakeStrategy.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/snakecase/UserWithSnakeStrategy.java rename to libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/snakecase/UserWithSnakeStrategy.java diff --git a/jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/tocollection/Book.java b/libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/tocollection/Book.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/tocollection/Book.java rename to libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/tocollection/Book.java diff --git a/jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/tocollection/JsonToCollectionUtil.java b/libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/tocollection/JsonToCollectionUtil.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/tocollection/JsonToCollectionUtil.java rename to libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/tocollection/JsonToCollectionUtil.java diff --git a/jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/xmlToJson/Color.java b/libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/xmlToJson/Color.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/xmlToJson/Color.java rename to libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/xmlToJson/Color.java diff --git a/jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/xmlToJson/Flower.java b/libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/xmlToJson/Flower.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/xmlToJson/Flower.java rename to libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/xmlToJson/Flower.java diff --git a/jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/yaml/Order.java b/libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/yaml/Order.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/yaml/Order.java rename to libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/yaml/Order.java diff --git a/jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/yaml/OrderLine.java b/libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/yaml/OrderLine.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/main/java/com/baeldung/jackson/yaml/OrderLine.java rename to libraries-jackson/jackson-conversions-2/src/main/java/com/baeldung/jackson/yaml/OrderLine.java diff --git a/jackson-modules/jackson-conversions-2/src/main/java/com/ossez/jackson/csv/JsonCsvConverter.java b/libraries-jackson/jackson-conversions-2/src/main/java/com/ossez/jackson/csv/JsonCsvConverter.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/main/java/com/ossez/jackson/csv/JsonCsvConverter.java rename to libraries-jackson/jackson-conversions-2/src/main/java/com/ossez/jackson/csv/JsonCsvConverter.java diff --git a/jackson-modules/jackson-conversions-2/src/main/java/com/ossez/jackson/csv/OrderLine.java b/libraries-jackson/jackson-conversions-2/src/main/java/com/ossez/jackson/csv/OrderLine.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/main/java/com/ossez/jackson/csv/OrderLine.java rename to libraries-jackson/jackson-conversions-2/src/main/java/com/ossez/jackson/csv/OrderLine.java diff --git a/jackson-modules/jackson-conversions-2/src/main/java/com/ossez/jackson/csv/OrderLineForCsv.java b/libraries-jackson/jackson-conversions-2/src/main/java/com/ossez/jackson/csv/OrderLineForCsv.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/main/java/com/ossez/jackson/csv/OrderLineForCsv.java rename to libraries-jackson/jackson-conversions-2/src/main/java/com/ossez/jackson/csv/OrderLineForCsv.java diff --git a/jackson-modules/jackson-conversions-2/src/main/java/com/ossez/jackson/dynamicobject/Product.java b/libraries-jackson/jackson-conversions-2/src/main/java/com/ossez/jackson/dynamicobject/Product.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/main/java/com/ossez/jackson/dynamicobject/Product.java rename to libraries-jackson/jackson-conversions-2/src/main/java/com/ossez/jackson/dynamicobject/Product.java diff --git a/jackson-modules/jackson-conversions-2/src/main/java/com/ossez/jackson/dynamicobject/ProductJsonNode.java b/libraries-jackson/jackson-conversions-2/src/main/java/com/ossez/jackson/dynamicobject/ProductJsonNode.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/main/java/com/ossez/jackson/dynamicobject/ProductJsonNode.java rename to libraries-jackson/jackson-conversions-2/src/main/java/com/ossez/jackson/dynamicobject/ProductJsonNode.java diff --git a/jackson-modules/jackson-conversions-2/src/main/java/com/ossez/jackson/dynamicobject/ProductMap.java b/libraries-jackson/jackson-conversions-2/src/main/java/com/ossez/jackson/dynamicobject/ProductMap.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/main/java/com/ossez/jackson/dynamicobject/ProductMap.java rename to libraries-jackson/jackson-conversions-2/src/main/java/com/ossez/jackson/dynamicobject/ProductMap.java diff --git a/jackson-modules/jackson-conversions-2/src/main/java/com/ossez/jackson/multiplefields/Weather.java b/libraries-jackson/jackson-conversions-2/src/main/java/com/ossez/jackson/multiplefields/Weather.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/main/java/com/ossez/jackson/multiplefields/Weather.java rename to libraries-jackson/jackson-conversions-2/src/main/java/com/ossez/jackson/multiplefields/Weather.java diff --git a/jackson-modules/jackson-conversions-2/src/main/java/com/ossez/jackson/tocollection/Book.java b/libraries-jackson/jackson-conversions-2/src/main/java/com/ossez/jackson/tocollection/Book.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/main/java/com/ossez/jackson/tocollection/Book.java rename to libraries-jackson/jackson-conversions-2/src/main/java/com/ossez/jackson/tocollection/Book.java diff --git a/jackson-modules/jackson-conversions-2/src/main/java/com/ossez/jackson/tocollection/JsonToCollectionUtil.java b/libraries-jackson/jackson-conversions-2/src/main/java/com/ossez/jackson/tocollection/JsonToCollectionUtil.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/main/java/com/ossez/jackson/tocollection/JsonToCollectionUtil.java rename to libraries-jackson/jackson-conversions-2/src/main/java/com/ossez/jackson/tocollection/JsonToCollectionUtil.java diff --git a/jackson-modules/jackson-conversions-2/src/main/java/com/ossez/jackson/xmlToJson/Color.java b/libraries-jackson/jackson-conversions-2/src/main/java/com/ossez/jackson/xmlToJson/Color.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/main/java/com/ossez/jackson/xmlToJson/Color.java rename to libraries-jackson/jackson-conversions-2/src/main/java/com/ossez/jackson/xmlToJson/Color.java diff --git a/jackson-modules/jackson-conversions-2/src/main/java/com/ossez/jackson/xmlToJson/Flower.java b/libraries-jackson/jackson-conversions-2/src/main/java/com/ossez/jackson/xmlToJson/Flower.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/main/java/com/ossez/jackson/xmlToJson/Flower.java rename to libraries-jackson/jackson-conversions-2/src/main/java/com/ossez/jackson/xmlToJson/Flower.java diff --git a/jackson-modules/jackson-conversions-2/src/main/java/com/ossez/jackson/yaml/Order.java b/libraries-jackson/jackson-conversions-2/src/main/java/com/ossez/jackson/yaml/Order.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/main/java/com/ossez/jackson/yaml/Order.java rename to libraries-jackson/jackson-conversions-2/src/main/java/com/ossez/jackson/yaml/Order.java diff --git a/jackson-modules/jackson-conversions-2/src/main/java/com/ossez/jackson/yaml/OrderLine.java b/libraries-jackson/jackson-conversions-2/src/main/java/com/ossez/jackson/yaml/OrderLine.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/main/java/com/ossez/jackson/yaml/OrderLine.java rename to libraries-jackson/jackson-conversions-2/src/main/java/com/ossez/jackson/yaml/OrderLine.java diff --git a/jackson-modules/jackson-conversions-2/src/main/resources/csv/orderLines.csv b/libraries-jackson/jackson-conversions-2/src/main/resources/csv/orderLines.csv similarity index 100% rename from jackson-modules/jackson-conversions-2/src/main/resources/csv/orderLines.csv rename to libraries-jackson/jackson-conversions-2/src/main/resources/csv/orderLines.csv diff --git a/jackson-modules/jackson-conversions-2/src/main/resources/csv/orderLines.json b/libraries-jackson/jackson-conversions-2/src/main/resources/csv/orderLines.json similarity index 100% rename from jackson-modules/jackson-conversions-2/src/main/resources/csv/orderLines.json rename to libraries-jackson/jackson-conversions-2/src/main/resources/csv/orderLines.json diff --git a/jackson-modules/jackson-conversions-2/src/main/resources/to-java-collection/books.json b/libraries-jackson/jackson-conversions-2/src/main/resources/to-java-collection/books.json similarity index 100% rename from jackson-modules/jackson-conversions-2/src/main/resources/to-java-collection/books.json rename to libraries-jackson/jackson-conversions-2/src/main/resources/to-java-collection/books.json diff --git a/jackson-modules/jackson-conversions-2/src/main/resources/to-java-collection/books.xml b/libraries-jackson/jackson-conversions-2/src/main/resources/to-java-collection/books.xml similarity index 100% rename from jackson-modules/jackson-conversions-2/src/main/resources/to-java-collection/books.xml rename to libraries-jackson/jackson-conversions-2/src/main/resources/to-java-collection/books.xml diff --git a/jackson-modules/jackson-conversions-2/src/test/java/com/baeldung/jackson/booleanAsInt/BooleanAsIntegerUnitTest.java b/libraries-jackson/jackson-conversions-2/src/test/java/com/baeldung/jackson/booleanAsInt/BooleanAsIntegerUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/test/java/com/baeldung/jackson/booleanAsInt/BooleanAsIntegerUnitTest.java rename to libraries-jackson/jackson-conversions-2/src/test/java/com/baeldung/jackson/booleanAsInt/BooleanAsIntegerUnitTest.java diff --git a/jackson-modules/jackson-conversions-2/src/test/java/com/baeldung/jackson/csv/CsvUnitTest.java b/libraries-jackson/jackson-conversions-2/src/test/java/com/baeldung/jackson/csv/CsvUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/test/java/com/baeldung/jackson/csv/CsvUnitTest.java rename to libraries-jackson/jackson-conversions-2/src/test/java/com/baeldung/jackson/csv/CsvUnitTest.java diff --git a/jackson-modules/jackson-conversions-2/src/test/java/com/baeldung/jackson/dynamicobject/DynamicObjectDeserializationUnitTest.java b/libraries-jackson/jackson-conversions-2/src/test/java/com/baeldung/jackson/dynamicobject/DynamicObjectDeserializationUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/test/java/com/baeldung/jackson/dynamicobject/DynamicObjectDeserializationUnitTest.java rename to libraries-jackson/jackson-conversions-2/src/test/java/com/baeldung/jackson/dynamicobject/DynamicObjectDeserializationUnitTest.java diff --git a/jackson-modules/jackson-conversions-2/src/test/java/com/baeldung/jackson/jsonurlreader/JsonMockServer.java b/libraries-jackson/jackson-conversions-2/src/test/java/com/baeldung/jackson/jsonurlreader/JsonMockServer.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/test/java/com/baeldung/jackson/jsonurlreader/JsonMockServer.java rename to libraries-jackson/jackson-conversions-2/src/test/java/com/baeldung/jackson/jsonurlreader/JsonMockServer.java diff --git a/jackson-modules/jackson-conversions-2/src/test/java/com/baeldung/jackson/jsonurlreader/JsonUrlReaderIntegrationTest.java b/libraries-jackson/jackson-conversions-2/src/test/java/com/baeldung/jackson/jsonurlreader/JsonUrlReaderIntegrationTest.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/test/java/com/baeldung/jackson/jsonurlreader/JsonUrlReaderIntegrationTest.java rename to libraries-jackson/jackson-conversions-2/src/test/java/com/baeldung/jackson/jsonurlreader/JsonUrlReaderIntegrationTest.java diff --git a/jackson-modules/jackson-conversions-2/src/test/java/com/baeldung/jackson/multiplefields/MapMultipleFieldsToSingleFieldUnitTest.java b/libraries-jackson/jackson-conversions-2/src/test/java/com/baeldung/jackson/multiplefields/MapMultipleFieldsToSingleFieldUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/test/java/com/baeldung/jackson/multiplefields/MapMultipleFieldsToSingleFieldUnitTest.java rename to libraries-jackson/jackson-conversions-2/src/test/java/com/baeldung/jackson/multiplefields/MapMultipleFieldsToSingleFieldUnitTest.java diff --git a/jackson-modules/jackson-conversions-2/src/test/java/com/baeldung/jackson/snakecase/SnakeCaseUnitTest.java b/libraries-jackson/jackson-conversions-2/src/test/java/com/baeldung/jackson/snakecase/SnakeCaseUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/test/java/com/baeldung/jackson/snakecase/SnakeCaseUnitTest.java rename to libraries-jackson/jackson-conversions-2/src/test/java/com/baeldung/jackson/snakecase/SnakeCaseUnitTest.java diff --git a/jackson-modules/jackson-conversions-2/src/test/java/com/baeldung/jackson/streaming/StreamingAPIUnitTest.java b/libraries-jackson/jackson-conversions-2/src/test/java/com/baeldung/jackson/streaming/StreamingAPIUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/test/java/com/baeldung/jackson/streaming/StreamingAPIUnitTest.java rename to libraries-jackson/jackson-conversions-2/src/test/java/com/baeldung/jackson/streaming/StreamingAPIUnitTest.java diff --git a/jackson-modules/jackson-conversions-2/src/test/java/com/baeldung/jackson/tocollection/DeserializeToJavaCollectionUnitTest.java b/libraries-jackson/jackson-conversions-2/src/test/java/com/baeldung/jackson/tocollection/DeserializeToJavaCollectionUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/test/java/com/baeldung/jackson/tocollection/DeserializeToJavaCollectionUnitTest.java rename to libraries-jackson/jackson-conversions-2/src/test/java/com/baeldung/jackson/tocollection/DeserializeToJavaCollectionUnitTest.java diff --git a/jackson-modules/jackson-conversions-2/src/test/java/com/baeldung/jackson/tocollection/JsonToCollectionUtilUnitTest.java b/libraries-jackson/jackson-conversions-2/src/test/java/com/baeldung/jackson/tocollection/JsonToCollectionUtilUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/test/java/com/baeldung/jackson/tocollection/JsonToCollectionUtilUnitTest.java rename to libraries-jackson/jackson-conversions-2/src/test/java/com/baeldung/jackson/tocollection/JsonToCollectionUtilUnitTest.java diff --git a/jackson-modules/jackson-conversions-2/src/test/java/com/baeldung/jackson/xmlToJson/XmlToJsonUnitTest.java b/libraries-jackson/jackson-conversions-2/src/test/java/com/baeldung/jackson/xmlToJson/XmlToJsonUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/test/java/com/baeldung/jackson/xmlToJson/XmlToJsonUnitTest.java rename to libraries-jackson/jackson-conversions-2/src/test/java/com/baeldung/jackson/xmlToJson/XmlToJsonUnitTest.java diff --git a/jackson-modules/jackson-conversions-2/src/test/java/com/baeldung/jackson/yaml/YamlUnitTest.java b/libraries-jackson/jackson-conversions-2/src/test/java/com/baeldung/jackson/yaml/YamlUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/test/java/com/baeldung/jackson/yaml/YamlUnitTest.java rename to libraries-jackson/jackson-conversions-2/src/test/java/com/baeldung/jackson/yaml/YamlUnitTest.java diff --git a/jackson-modules/jackson-conversions-2/src/test/java/com/ossez/jackson/csv/CsvUnitTest.java b/libraries-jackson/jackson-conversions-2/src/test/java/com/ossez/jackson/csv/CsvUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/test/java/com/ossez/jackson/csv/CsvUnitTest.java rename to libraries-jackson/jackson-conversions-2/src/test/java/com/ossez/jackson/csv/CsvUnitTest.java diff --git a/jackson-modules/jackson-conversions-2/src/test/java/com/ossez/jackson/dynamicobject/DynamicObjectDeserializationUnitTest.java b/libraries-jackson/jackson-conversions-2/src/test/java/com/ossez/jackson/dynamicobject/DynamicObjectDeserializationUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/test/java/com/ossez/jackson/dynamicobject/DynamicObjectDeserializationUnitTest.java rename to libraries-jackson/jackson-conversions-2/src/test/java/com/ossez/jackson/dynamicobject/DynamicObjectDeserializationUnitTest.java diff --git a/jackson-modules/jackson-conversions-2/src/test/java/com/ossez/jackson/multiplefields/MapMultipleFieldsToSingleFieldUnitTest.java b/libraries-jackson/jackson-conversions-2/src/test/java/com/ossez/jackson/multiplefields/MapMultipleFieldsToSingleFieldUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/test/java/com/ossez/jackson/multiplefields/MapMultipleFieldsToSingleFieldUnitTest.java rename to libraries-jackson/jackson-conversions-2/src/test/java/com/ossez/jackson/multiplefields/MapMultipleFieldsToSingleFieldUnitTest.java diff --git a/jackson-modules/jackson-conversions-2/src/test/java/com/ossez/jackson/streaming/StreamingAPIUnitTest.java b/libraries-jackson/jackson-conversions-2/src/test/java/com/ossez/jackson/streaming/StreamingAPIUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/test/java/com/ossez/jackson/streaming/StreamingAPIUnitTest.java rename to libraries-jackson/jackson-conversions-2/src/test/java/com/ossez/jackson/streaming/StreamingAPIUnitTest.java diff --git a/jackson-modules/jackson-conversions-2/src/test/java/com/ossez/jackson/tocollection/DeserializeToJavaCollectionUnitTest.java b/libraries-jackson/jackson-conversions-2/src/test/java/com/ossez/jackson/tocollection/DeserializeToJavaCollectionUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/test/java/com/ossez/jackson/tocollection/DeserializeToJavaCollectionUnitTest.java rename to libraries-jackson/jackson-conversions-2/src/test/java/com/ossez/jackson/tocollection/DeserializeToJavaCollectionUnitTest.java diff --git a/jackson-modules/jackson-conversions-2/src/test/java/com/ossez/jackson/tocollection/JsonToCollectionUtilUnitTest.java b/libraries-jackson/jackson-conversions-2/src/test/java/com/ossez/jackson/tocollection/JsonToCollectionUtilUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/test/java/com/ossez/jackson/tocollection/JsonToCollectionUtilUnitTest.java rename to libraries-jackson/jackson-conversions-2/src/test/java/com/ossez/jackson/tocollection/JsonToCollectionUtilUnitTest.java diff --git a/jackson-modules/jackson-conversions-2/src/test/java/com/ossez/jackson/xmlToJson/XmlToJsonUnitTest.java b/libraries-jackson/jackson-conversions-2/src/test/java/com/ossez/jackson/xmlToJson/XmlToJsonUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/test/java/com/ossez/jackson/xmlToJson/XmlToJsonUnitTest.java rename to libraries-jackson/jackson-conversions-2/src/test/java/com/ossez/jackson/xmlToJson/XmlToJsonUnitTest.java diff --git a/jackson-modules/jackson-conversions-2/src/test/java/com/ossez/jackson/yaml/YamlUnitTest.java b/libraries-jackson/jackson-conversions-2/src/test/java/com/ossez/jackson/yaml/YamlUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions-2/src/test/java/com/ossez/jackson/yaml/YamlUnitTest.java rename to libraries-jackson/jackson-conversions-2/src/test/java/com/ossez/jackson/yaml/YamlUnitTest.java diff --git a/jackson-modules/jackson-conversions-2/src/test/resources/csv/expectedCsvFromJson.csv b/libraries-jackson/jackson-conversions-2/src/test/resources/csv/expectedCsvFromJson.csv similarity index 100% rename from jackson-modules/jackson-conversions-2/src/test/resources/csv/expectedCsvFromJson.csv rename to libraries-jackson/jackson-conversions-2/src/test/resources/csv/expectedCsvFromJson.csv diff --git a/jackson-modules/jackson-conversions-2/src/test/resources/csv/expectedFormattedCsvFromJson.csv b/libraries-jackson/jackson-conversions-2/src/test/resources/csv/expectedFormattedCsvFromJson.csv similarity index 100% rename from jackson-modules/jackson-conversions-2/src/test/resources/csv/expectedFormattedCsvFromJson.csv rename to libraries-jackson/jackson-conversions-2/src/test/resources/csv/expectedFormattedCsvFromJson.csv diff --git a/jackson-modules/jackson-conversions-2/src/test/resources/csv/expectedJsonFromCsv.json b/libraries-jackson/jackson-conversions-2/src/test/resources/csv/expectedJsonFromCsv.json similarity index 100% rename from jackson-modules/jackson-conversions-2/src/test/resources/csv/expectedJsonFromCsv.json rename to libraries-jackson/jackson-conversions-2/src/test/resources/csv/expectedJsonFromCsv.json diff --git a/jackson-modules/jackson-conversions-2/src/test/resources/deserialize-dynamic-object/embedded.json b/libraries-jackson/jackson-conversions-2/src/test/resources/deserialize-dynamic-object/embedded.json similarity index 100% rename from jackson-modules/jackson-conversions-2/src/test/resources/deserialize-dynamic-object/embedded.json rename to libraries-jackson/jackson-conversions-2/src/test/resources/deserialize-dynamic-object/embedded.json diff --git a/jackson-modules/jackson-conversions-2/src/test/resources/deserialize-dynamic-object/flat.json b/libraries-jackson/jackson-conversions-2/src/test/resources/deserialize-dynamic-object/flat.json similarity index 100% rename from jackson-modules/jackson-conversions-2/src/test/resources/deserialize-dynamic-object/flat.json rename to libraries-jackson/jackson-conversions-2/src/test/resources/deserialize-dynamic-object/flat.json diff --git a/jackson-modules/jackson-conversions-2/src/test/resources/yaml/orderInput.yaml b/libraries-jackson/jackson-conversions-2/src/test/resources/yaml/orderInput.yaml similarity index 100% rename from jackson-modules/jackson-conversions-2/src/test/resources/yaml/orderInput.yaml rename to libraries-jackson/jackson-conversions-2/src/test/resources/yaml/orderInput.yaml diff --git a/jackson-modules/jackson-conversions/README.md b/libraries-jackson/jackson-conversions/README.md similarity index 100% rename from jackson-modules/jackson-conversions/README.md rename to libraries-jackson/jackson-conversions/README.md diff --git a/jackson-modules/jackson-conversions/pom.xml b/libraries-jackson/jackson-conversions/pom.xml similarity index 96% rename from jackson-modules/jackson-conversions/pom.xml rename to libraries-jackson/jackson-conversions/pom.xml index f11e2b35fd..1953d42b73 100644 --- a/jackson-modules/jackson-conversions/pom.xml +++ b/libraries-jackson/jackson-conversions/pom.xml @@ -9,7 +9,7 @@ com.ossez - jackson-modules + libraries-jackson 0.0.2-SNAPSHOT diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/date/CustomDateDeserializer.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/date/CustomDateDeserializer.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/date/CustomDateDeserializer.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/date/CustomDateDeserializer.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/date/CustomDateSerializer.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/date/CustomDateSerializer.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/date/CustomDateSerializer.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/date/CustomDateSerializer.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/date/CustomDateTimeSerializer.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/date/CustomDateTimeSerializer.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/date/CustomDateTimeSerializer.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/date/CustomDateTimeSerializer.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/date/CustomLocalDateTimeSerializer.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/date/CustomLocalDateTimeSerializer.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/date/CustomLocalDateTimeSerializer.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/date/CustomLocalDateTimeSerializer.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/date/Event.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/date/Event.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/date/Event.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/date/Event.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/date/EventWithFormat.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/date/EventWithFormat.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/date/EventWithFormat.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/date/EventWithFormat.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/date/EventWithJodaTime.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/date/EventWithJodaTime.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/date/EventWithJodaTime.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/date/EventWithJodaTime.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/date/EventWithLocalDate.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/date/EventWithLocalDate.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/date/EventWithLocalDate.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/date/EventWithLocalDate.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/date/EventWithLocalDateTime.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/date/EventWithLocalDateTime.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/date/EventWithLocalDateTime.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/date/EventWithLocalDateTime.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/date/EventWithSerializer.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/date/EventWithSerializer.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/date/EventWithSerializer.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/date/EventWithSerializer.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/City.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/City.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/City.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/City.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/Distance.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/Distance.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/Distance.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/Distance.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/customdeserializer/City.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/customdeserializer/City.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/customdeserializer/City.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/customdeserializer/City.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/customdeserializer/CustomEnumDeserializer.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/customdeserializer/CustomEnumDeserializer.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/customdeserializer/CustomEnumDeserializer.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/customdeserializer/CustomEnumDeserializer.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/customdeserializer/Distance.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/customdeserializer/Distance.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/customdeserializer/Distance.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/customdeserializer/Distance.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/jsoncreator/City.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/jsoncreator/City.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/jsoncreator/City.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/jsoncreator/City.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/jsoncreator/Distance.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/jsoncreator/Distance.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/jsoncreator/Distance.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/jsoncreator/Distance.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/jsonproperty/City.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/jsonproperty/City.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/jsonproperty/City.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/jsonproperty/City.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/jsonproperty/Distance.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/jsonproperty/Distance.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/jsonproperty/Distance.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/jsonproperty/Distance.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/jsonvalue/City.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/jsonvalue/City.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/jsonvalue/City.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/jsonvalue/City.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/jsonvalue/Distance.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/jsonvalue/Distance.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/jsonvalue/Distance.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/enums/deserialization/jsonvalue/Distance.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/enums/serialization/Distance.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/enums/serialization/Distance.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/enums/serialization/Distance.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/enums/serialization/Distance.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/enums/serialization/DistanceSerializer.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/enums/serialization/DistanceSerializer.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/enums/serialization/DistanceSerializer.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/enums/serialization/DistanceSerializer.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/enums/withEnum/DistanceEnumSimple.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/enums/withEnum/DistanceEnumSimple.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/enums/withEnum/DistanceEnumSimple.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/enums/withEnum/DistanceEnumSimple.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/enums/withEnum/DistanceEnumWithJsonFormat.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/enums/withEnum/DistanceEnumWithJsonFormat.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/enums/withEnum/DistanceEnumWithJsonFormat.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/enums/withEnum/DistanceEnumWithJsonFormat.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/enums/withEnum/DistanceEnumWithValue.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/enums/withEnum/DistanceEnumWithValue.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/enums/withEnum/DistanceEnumWithValue.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/enums/withEnum/DistanceEnumWithValue.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/enums/withEnum/MyDtoWithEnumCustom.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/enums/withEnum/MyDtoWithEnumCustom.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/enums/withEnum/MyDtoWithEnumCustom.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/enums/withEnum/MyDtoWithEnumCustom.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/enums/withEnum/MyDtoWithEnumJsonFormat.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/enums/withEnum/MyDtoWithEnumJsonFormat.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/enums/withEnum/MyDtoWithEnumJsonFormat.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/enums/withEnum/MyDtoWithEnumJsonFormat.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/field/MyDto.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/field/MyDto.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/field/MyDto.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/field/MyDto.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/field/MyDtoAccessLevel.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/field/MyDtoAccessLevel.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/field/MyDtoAccessLevel.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/field/MyDtoAccessLevel.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/field/MyDtoWithGetter.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/field/MyDtoWithGetter.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/field/MyDtoWithGetter.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/field/MyDtoWithGetter.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/field/MyDtoWithSetter.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/field/MyDtoWithSetter.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/field/MyDtoWithSetter.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/field/MyDtoWithSetter.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/immutable/Employee.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/immutable/Employee.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/immutable/Employee.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/immutable/Employee.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/immutable/Person.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/immutable/Person.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/immutable/Person.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/immutable/Person.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/map/ClassWithAMap.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/map/ClassWithAMap.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/map/ClassWithAMap.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/map/ClassWithAMap.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/map/Fruit.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/map/Fruit.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/map/Fruit.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/map/Fruit.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/map/MyPair.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/map/MyPair.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/map/MyPair.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/map/MyPair.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/map/MyPairDeserializer.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/map/MyPairDeserializer.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/map/MyPairDeserializer.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/map/MyPairDeserializer.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/map/MyPairSerializer.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/map/MyPairSerializer.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/map/MyPairSerializer.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/map/MyPairSerializer.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/mapnull/MyDto.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/mapnull/MyDto.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/mapnull/MyDto.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/mapnull/MyDto.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/mapnull/MyDtoNullKeySerializer.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/mapnull/MyDtoNullKeySerializer.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/mapnull/MyDtoNullKeySerializer.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/mapnull/MyDtoNullKeySerializer.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/tocollection/MyDto.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/tocollection/MyDto.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/tocollection/MyDto.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/tocollection/MyDto.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/xml/Address.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/xml/Address.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/xml/Address.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/xml/Address.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/xml/Person.java b/libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/xml/Person.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/baeldung/jackson/xml/Person.java rename to libraries-jackson/jackson-conversions/src/main/java/com/baeldung/jackson/xml/Person.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/date/CustomDateDeserializer.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/date/CustomDateDeserializer.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/date/CustomDateDeserializer.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/date/CustomDateDeserializer.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/date/CustomDateSerializer.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/date/CustomDateSerializer.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/date/CustomDateSerializer.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/date/CustomDateSerializer.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/date/CustomDateTimeSerializer.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/date/CustomDateTimeSerializer.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/date/CustomDateTimeSerializer.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/date/CustomDateTimeSerializer.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/date/CustomLocalDateTimeSerializer.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/date/CustomLocalDateTimeSerializer.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/date/CustomLocalDateTimeSerializer.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/date/CustomLocalDateTimeSerializer.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/date/Event.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/date/Event.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/date/Event.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/date/Event.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/date/EventWithFormat.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/date/EventWithFormat.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/date/EventWithFormat.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/date/EventWithFormat.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/date/EventWithJodaTime.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/date/EventWithJodaTime.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/date/EventWithJodaTime.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/date/EventWithJodaTime.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/date/EventWithLocalDate.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/date/EventWithLocalDate.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/date/EventWithLocalDate.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/date/EventWithLocalDate.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/date/EventWithLocalDateTime.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/date/EventWithLocalDateTime.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/date/EventWithLocalDateTime.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/date/EventWithLocalDateTime.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/date/EventWithSerializer.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/date/EventWithSerializer.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/date/EventWithSerializer.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/date/EventWithSerializer.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/City.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/City.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/City.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/City.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/Distance.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/Distance.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/Distance.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/Distance.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/customdeserializer/City.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/customdeserializer/City.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/customdeserializer/City.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/customdeserializer/City.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/customdeserializer/CustomEnumDeserializer.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/customdeserializer/CustomEnumDeserializer.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/customdeserializer/CustomEnumDeserializer.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/customdeserializer/CustomEnumDeserializer.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/customdeserializer/Distance.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/customdeserializer/Distance.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/customdeserializer/Distance.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/customdeserializer/Distance.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/jsoncreator/City.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/jsoncreator/City.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/jsoncreator/City.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/jsoncreator/City.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/jsoncreator/Distance.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/jsoncreator/Distance.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/jsoncreator/Distance.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/jsoncreator/Distance.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/jsonproperty/City.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/jsonproperty/City.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/jsonproperty/City.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/jsonproperty/City.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/jsonproperty/Distance.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/jsonproperty/Distance.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/jsonproperty/Distance.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/jsonproperty/Distance.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/jsonvalue/City.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/jsonvalue/City.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/jsonvalue/City.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/jsonvalue/City.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/jsonvalue/Distance.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/jsonvalue/Distance.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/jsonvalue/Distance.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/enums/deserialization/jsonvalue/Distance.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/enums/serialization/Distance.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/enums/serialization/Distance.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/enums/serialization/Distance.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/enums/serialization/Distance.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/enums/serialization/DistanceSerializer.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/enums/serialization/DistanceSerializer.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/enums/serialization/DistanceSerializer.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/enums/serialization/DistanceSerializer.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/enums/withEnum/DistanceEnumSimple.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/enums/withEnum/DistanceEnumSimple.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/enums/withEnum/DistanceEnumSimple.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/enums/withEnum/DistanceEnumSimple.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/enums/withEnum/DistanceEnumWithJsonFormat.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/enums/withEnum/DistanceEnumWithJsonFormat.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/enums/withEnum/DistanceEnumWithJsonFormat.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/enums/withEnum/DistanceEnumWithJsonFormat.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/enums/withEnum/DistanceEnumWithValue.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/enums/withEnum/DistanceEnumWithValue.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/enums/withEnum/DistanceEnumWithValue.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/enums/withEnum/DistanceEnumWithValue.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/enums/withEnum/MyDtoWithEnumCustom.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/enums/withEnum/MyDtoWithEnumCustom.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/enums/withEnum/MyDtoWithEnumCustom.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/enums/withEnum/MyDtoWithEnumCustom.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/enums/withEnum/MyDtoWithEnumJsonFormat.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/enums/withEnum/MyDtoWithEnumJsonFormat.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/enums/withEnum/MyDtoWithEnumJsonFormat.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/enums/withEnum/MyDtoWithEnumJsonFormat.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/field/MyDto.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/field/MyDto.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/field/MyDto.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/field/MyDto.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/field/MyDtoAccessLevel.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/field/MyDtoAccessLevel.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/field/MyDtoAccessLevel.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/field/MyDtoAccessLevel.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/field/MyDtoWithGetter.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/field/MyDtoWithGetter.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/field/MyDtoWithGetter.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/field/MyDtoWithGetter.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/field/MyDtoWithSetter.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/field/MyDtoWithSetter.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/field/MyDtoWithSetter.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/field/MyDtoWithSetter.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/immutable/Employee.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/immutable/Employee.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/immutable/Employee.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/immutable/Employee.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/immutable/Person.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/immutable/Person.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/immutable/Person.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/immutable/Person.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/map/ClassWithAMap.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/map/ClassWithAMap.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/map/ClassWithAMap.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/map/ClassWithAMap.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/map/MyPair.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/map/MyPair.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/map/MyPair.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/map/MyPair.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/map/MyPairDeserializer.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/map/MyPairDeserializer.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/map/MyPairDeserializer.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/map/MyPairDeserializer.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/map/MyPairSerializer.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/map/MyPairSerializer.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/map/MyPairSerializer.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/map/MyPairSerializer.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/mapnull/MyDto.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/mapnull/MyDto.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/mapnull/MyDto.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/mapnull/MyDto.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/mapnull/MyDtoNullKeySerializer.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/mapnull/MyDtoNullKeySerializer.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/mapnull/MyDtoNullKeySerializer.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/mapnull/MyDtoNullKeySerializer.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/tocollection/MyDto.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/tocollection/MyDto.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/tocollection/MyDto.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/tocollection/MyDto.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/xml/Address.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/xml/Address.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/xml/Address.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/xml/Address.java diff --git a/jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/xml/Person.java b/libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/xml/Person.java similarity index 100% rename from jackson-modules/jackson-conversions/src/main/java/com/ossez/jackson/xml/Person.java rename to libraries-jackson/jackson-conversions/src/main/java/com/ossez/jackson/xml/Person.java diff --git a/jackson-modules/jackson-conversions/src/test/java/com/baeldung/jackson/date/JacksonDateUnitTest.java b/libraries-jackson/jackson-conversions/src/test/java/com/baeldung/jackson/date/JacksonDateUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions/src/test/java/com/baeldung/jackson/date/JacksonDateUnitTest.java rename to libraries-jackson/jackson-conversions/src/test/java/com/baeldung/jackson/date/JacksonDateUnitTest.java diff --git a/jackson-modules/jackson-conversions/src/test/java/com/baeldung/jackson/enums/deserialization/DefaultEnumDeserializationUnitTest.java b/libraries-jackson/jackson-conversions/src/test/java/com/baeldung/jackson/enums/deserialization/DefaultEnumDeserializationUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions/src/test/java/com/baeldung/jackson/enums/deserialization/DefaultEnumDeserializationUnitTest.java rename to libraries-jackson/jackson-conversions/src/test/java/com/baeldung/jackson/enums/deserialization/DefaultEnumDeserializationUnitTest.java diff --git a/jackson-modules/jackson-conversions/src/test/java/com/baeldung/jackson/enums/deserialization/customdeserializer/EnumCustomDeserializationUnitTest.java b/libraries-jackson/jackson-conversions/src/test/java/com/baeldung/jackson/enums/deserialization/customdeserializer/EnumCustomDeserializationUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions/src/test/java/com/baeldung/jackson/enums/deserialization/customdeserializer/EnumCustomDeserializationUnitTest.java rename to libraries-jackson/jackson-conversions/src/test/java/com/baeldung/jackson/enums/deserialization/customdeserializer/EnumCustomDeserializationUnitTest.java diff --git a/jackson-modules/jackson-conversions/src/test/java/com/baeldung/jackson/enums/deserialization/jsoncreator/EnumDeserializationUsingJsonCreatorUnitTest.java b/libraries-jackson/jackson-conversions/src/test/java/com/baeldung/jackson/enums/deserialization/jsoncreator/EnumDeserializationUsingJsonCreatorUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions/src/test/java/com/baeldung/jackson/enums/deserialization/jsoncreator/EnumDeserializationUsingJsonCreatorUnitTest.java rename to libraries-jackson/jackson-conversions/src/test/java/com/baeldung/jackson/enums/deserialization/jsoncreator/EnumDeserializationUsingJsonCreatorUnitTest.java diff --git a/jackson-modules/jackson-conversions/src/test/java/com/baeldung/jackson/enums/deserialization/jsonproperty/EnumDeserializationUsingJsonPropertyUnitTest.java b/libraries-jackson/jackson-conversions/src/test/java/com/baeldung/jackson/enums/deserialization/jsonproperty/EnumDeserializationUsingJsonPropertyUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions/src/test/java/com/baeldung/jackson/enums/deserialization/jsonproperty/EnumDeserializationUsingJsonPropertyUnitTest.java rename to libraries-jackson/jackson-conversions/src/test/java/com/baeldung/jackson/enums/deserialization/jsonproperty/EnumDeserializationUsingJsonPropertyUnitTest.java diff --git a/jackson-modules/jackson-conversions/src/test/java/com/baeldung/jackson/enums/deserialization/jsonvalue/EnumDeserializationUsingJsonValueUnitTest.java b/libraries-jackson/jackson-conversions/src/test/java/com/baeldung/jackson/enums/deserialization/jsonvalue/EnumDeserializationUsingJsonValueUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions/src/test/java/com/baeldung/jackson/enums/deserialization/jsonvalue/EnumDeserializationUsingJsonValueUnitTest.java rename to libraries-jackson/jackson-conversions/src/test/java/com/baeldung/jackson/enums/deserialization/jsonvalue/EnumDeserializationUsingJsonValueUnitTest.java diff --git a/jackson-modules/jackson-conversions/src/test/java/com/baeldung/jackson/enums/serialization/JacksonEnumSerializationUnitTest.java b/libraries-jackson/jackson-conversions/src/test/java/com/baeldung/jackson/enums/serialization/JacksonEnumSerializationUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions/src/test/java/com/baeldung/jackson/enums/serialization/JacksonEnumSerializationUnitTest.java rename to libraries-jackson/jackson-conversions/src/test/java/com/baeldung/jackson/enums/serialization/JacksonEnumSerializationUnitTest.java diff --git a/jackson-modules/jackson-conversions/src/test/java/com/baeldung/jackson/enums/serialization/JacksonSerializationEnumsUnitTest.java b/libraries-jackson/jackson-conversions/src/test/java/com/baeldung/jackson/enums/serialization/JacksonSerializationEnumsUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions/src/test/java/com/baeldung/jackson/enums/serialization/JacksonSerializationEnumsUnitTest.java rename to libraries-jackson/jackson-conversions/src/test/java/com/baeldung/jackson/enums/serialization/JacksonSerializationEnumsUnitTest.java diff --git a/jackson-modules/jackson-conversions/src/test/java/com/baeldung/jackson/field/JacksonFieldUnitTest.java b/libraries-jackson/jackson-conversions/src/test/java/com/baeldung/jackson/field/JacksonFieldUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions/src/test/java/com/baeldung/jackson/field/JacksonFieldUnitTest.java rename to libraries-jackson/jackson-conversions/src/test/java/com/baeldung/jackson/field/JacksonFieldUnitTest.java diff --git a/jackson-modules/jackson-conversions/src/test/java/com/baeldung/jackson/immutable/ImmutableObjectDeserializationUnitTest.java b/libraries-jackson/jackson-conversions/src/test/java/com/baeldung/jackson/immutable/ImmutableObjectDeserializationUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions/src/test/java/com/baeldung/jackson/immutable/ImmutableObjectDeserializationUnitTest.java rename to libraries-jackson/jackson-conversions/src/test/java/com/baeldung/jackson/immutable/ImmutableObjectDeserializationUnitTest.java diff --git a/jackson-modules/jackson-conversions/src/test/java/com/baeldung/jackson/map/JacksonMapDeserializeUnitTest.java b/libraries-jackson/jackson-conversions/src/test/java/com/baeldung/jackson/map/JacksonMapDeserializeUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions/src/test/java/com/baeldung/jackson/map/JacksonMapDeserializeUnitTest.java rename to libraries-jackson/jackson-conversions/src/test/java/com/baeldung/jackson/map/JacksonMapDeserializeUnitTest.java diff --git a/jackson-modules/jackson-conversions/src/test/java/com/baeldung/jackson/map/JacksonMapSerializeUnitTest.java b/libraries-jackson/jackson-conversions/src/test/java/com/baeldung/jackson/map/JacksonMapSerializeUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions/src/test/java/com/baeldung/jackson/map/JacksonMapSerializeUnitTest.java rename to libraries-jackson/jackson-conversions/src/test/java/com/baeldung/jackson/map/JacksonMapSerializeUnitTest.java diff --git a/jackson-modules/jackson-conversions/src/test/java/com/baeldung/jackson/map/MapWithJsonKeyValueUnitTest.java b/libraries-jackson/jackson-conversions/src/test/java/com/baeldung/jackson/map/MapWithJsonKeyValueUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions/src/test/java/com/baeldung/jackson/map/MapWithJsonKeyValueUnitTest.java rename to libraries-jackson/jackson-conversions/src/test/java/com/baeldung/jackson/map/MapWithJsonKeyValueUnitTest.java diff --git a/jackson-modules/jackson-conversions/src/test/java/com/baeldung/jackson/mapnull/JacksonMapNullUnitTest.java b/libraries-jackson/jackson-conversions/src/test/java/com/baeldung/jackson/mapnull/JacksonMapNullUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions/src/test/java/com/baeldung/jackson/mapnull/JacksonMapNullUnitTest.java rename to libraries-jackson/jackson-conversions/src/test/java/com/baeldung/jackson/mapnull/JacksonMapNullUnitTest.java diff --git a/jackson-modules/jackson-conversions/src/test/java/com/baeldung/jackson/nested/DeserializeWithNestedPropertiesUnitTest.java b/libraries-jackson/jackson-conversions/src/test/java/com/baeldung/jackson/nested/DeserializeWithNestedPropertiesUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions/src/test/java/com/baeldung/jackson/nested/DeserializeWithNestedPropertiesUnitTest.java rename to libraries-jackson/jackson-conversions/src/test/java/com/baeldung/jackson/nested/DeserializeWithNestedPropertiesUnitTest.java diff --git a/jackson-modules/jackson-conversions/src/test/java/com/baeldung/jackson/nested/Product.java b/libraries-jackson/jackson-conversions/src/test/java/com/baeldung/jackson/nested/Product.java similarity index 100% rename from jackson-modules/jackson-conversions/src/test/java/com/baeldung/jackson/nested/Product.java rename to libraries-jackson/jackson-conversions/src/test/java/com/baeldung/jackson/nested/Product.java diff --git a/jackson-modules/jackson-conversions/src/test/java/com/baeldung/jackson/nested/ProductDeserializer.java b/libraries-jackson/jackson-conversions/src/test/java/com/baeldung/jackson/nested/ProductDeserializer.java similarity index 100% rename from jackson-modules/jackson-conversions/src/test/java/com/baeldung/jackson/nested/ProductDeserializer.java rename to libraries-jackson/jackson-conversions/src/test/java/com/baeldung/jackson/nested/ProductDeserializer.java diff --git a/jackson-modules/jackson-conversions/src/test/java/com/baeldung/jackson/tocollection/JacksonCollectionDeserializationUnitTest.java b/libraries-jackson/jackson-conversions/src/test/java/com/baeldung/jackson/tocollection/JacksonCollectionDeserializationUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions/src/test/java/com/baeldung/jackson/tocollection/JacksonCollectionDeserializationUnitTest.java rename to libraries-jackson/jackson-conversions/src/test/java/com/baeldung/jackson/tocollection/JacksonCollectionDeserializationUnitTest.java diff --git a/jackson-modules/jackson-conversions/src/test/java/com/baeldung/jackson/tojsonnode/StringToJsonNodeUnitTest.java b/libraries-jackson/jackson-conversions/src/test/java/com/baeldung/jackson/tojsonnode/StringToJsonNodeUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions/src/test/java/com/baeldung/jackson/tojsonnode/StringToJsonNodeUnitTest.java rename to libraries-jackson/jackson-conversions/src/test/java/com/baeldung/jackson/tojsonnode/StringToJsonNodeUnitTest.java diff --git a/jackson-modules/jackson-conversions/src/test/java/com/baeldung/jackson/xml/XMLSerializeDeserializeUnitTest.java b/libraries-jackson/jackson-conversions/src/test/java/com/baeldung/jackson/xml/XMLSerializeDeserializeUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions/src/test/java/com/baeldung/jackson/xml/XMLSerializeDeserializeUnitTest.java rename to libraries-jackson/jackson-conversions/src/test/java/com/baeldung/jackson/xml/XMLSerializeDeserializeUnitTest.java diff --git a/jackson-modules/jackson-conversions/src/test/java/com/ossez/jackson/date/JacksonDateUnitTest.java b/libraries-jackson/jackson-conversions/src/test/java/com/ossez/jackson/date/JacksonDateUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions/src/test/java/com/ossez/jackson/date/JacksonDateUnitTest.java rename to libraries-jackson/jackson-conversions/src/test/java/com/ossez/jackson/date/JacksonDateUnitTest.java diff --git a/jackson-modules/jackson-conversions/src/test/java/com/ossez/jackson/enums/deserialization/DefaultEnumDeserializationUnitTest.java b/libraries-jackson/jackson-conversions/src/test/java/com/ossez/jackson/enums/deserialization/DefaultEnumDeserializationUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions/src/test/java/com/ossez/jackson/enums/deserialization/DefaultEnumDeserializationUnitTest.java rename to libraries-jackson/jackson-conversions/src/test/java/com/ossez/jackson/enums/deserialization/DefaultEnumDeserializationUnitTest.java diff --git a/jackson-modules/jackson-conversions/src/test/java/com/ossez/jackson/enums/deserialization/customdeserializer/EnumCustomDeserializationUnitTest.java b/libraries-jackson/jackson-conversions/src/test/java/com/ossez/jackson/enums/deserialization/customdeserializer/EnumCustomDeserializationUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions/src/test/java/com/ossez/jackson/enums/deserialization/customdeserializer/EnumCustomDeserializationUnitTest.java rename to libraries-jackson/jackson-conversions/src/test/java/com/ossez/jackson/enums/deserialization/customdeserializer/EnumCustomDeserializationUnitTest.java diff --git a/jackson-modules/jackson-conversions/src/test/java/com/ossez/jackson/enums/deserialization/jsoncreator/EnumDeserializationUsingJsonCreatorUnitTest.java b/libraries-jackson/jackson-conversions/src/test/java/com/ossez/jackson/enums/deserialization/jsoncreator/EnumDeserializationUsingJsonCreatorUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions/src/test/java/com/ossez/jackson/enums/deserialization/jsoncreator/EnumDeserializationUsingJsonCreatorUnitTest.java rename to libraries-jackson/jackson-conversions/src/test/java/com/ossez/jackson/enums/deserialization/jsoncreator/EnumDeserializationUsingJsonCreatorUnitTest.java diff --git a/jackson-modules/jackson-conversions/src/test/java/com/ossez/jackson/enums/deserialization/jsonproperty/EnumDeserializationUsingJsonPropertyUnitTest.java b/libraries-jackson/jackson-conversions/src/test/java/com/ossez/jackson/enums/deserialization/jsonproperty/EnumDeserializationUsingJsonPropertyUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions/src/test/java/com/ossez/jackson/enums/deserialization/jsonproperty/EnumDeserializationUsingJsonPropertyUnitTest.java rename to libraries-jackson/jackson-conversions/src/test/java/com/ossez/jackson/enums/deserialization/jsonproperty/EnumDeserializationUsingJsonPropertyUnitTest.java diff --git a/jackson-modules/jackson-conversions/src/test/java/com/ossez/jackson/enums/deserialization/jsonvalue/EnumDeserializationUsingJsonValueUnitTest.java b/libraries-jackson/jackson-conversions/src/test/java/com/ossez/jackson/enums/deserialization/jsonvalue/EnumDeserializationUsingJsonValueUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions/src/test/java/com/ossez/jackson/enums/deserialization/jsonvalue/EnumDeserializationUsingJsonValueUnitTest.java rename to libraries-jackson/jackson-conversions/src/test/java/com/ossez/jackson/enums/deserialization/jsonvalue/EnumDeserializationUsingJsonValueUnitTest.java diff --git a/jackson-modules/jackson-conversions/src/test/java/com/ossez/jackson/enums/serialization/JacksonEnumSerializationUnitTest.java b/libraries-jackson/jackson-conversions/src/test/java/com/ossez/jackson/enums/serialization/JacksonEnumSerializationUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions/src/test/java/com/ossez/jackson/enums/serialization/JacksonEnumSerializationUnitTest.java rename to libraries-jackson/jackson-conversions/src/test/java/com/ossez/jackson/enums/serialization/JacksonEnumSerializationUnitTest.java diff --git a/jackson-modules/jackson-conversions/src/test/java/com/ossez/jackson/enums/serialization/JacksonSerializationEnumsUnitTest.java b/libraries-jackson/jackson-conversions/src/test/java/com/ossez/jackson/enums/serialization/JacksonSerializationEnumsUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions/src/test/java/com/ossez/jackson/enums/serialization/JacksonSerializationEnumsUnitTest.java rename to libraries-jackson/jackson-conversions/src/test/java/com/ossez/jackson/enums/serialization/JacksonSerializationEnumsUnitTest.java diff --git a/jackson-modules/jackson-conversions/src/test/java/com/ossez/jackson/field/JacksonFieldUnitTest.java b/libraries-jackson/jackson-conversions/src/test/java/com/ossez/jackson/field/JacksonFieldUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions/src/test/java/com/ossez/jackson/field/JacksonFieldUnitTest.java rename to libraries-jackson/jackson-conversions/src/test/java/com/ossez/jackson/field/JacksonFieldUnitTest.java diff --git a/jackson-modules/jackson-conversions/src/test/java/com/ossez/jackson/immutable/ImmutableObjectDeserializationUnitTest.java b/libraries-jackson/jackson-conversions/src/test/java/com/ossez/jackson/immutable/ImmutableObjectDeserializationUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions/src/test/java/com/ossez/jackson/immutable/ImmutableObjectDeserializationUnitTest.java rename to libraries-jackson/jackson-conversions/src/test/java/com/ossez/jackson/immutable/ImmutableObjectDeserializationUnitTest.java diff --git a/jackson-modules/jackson-conversions/src/test/java/com/ossez/jackson/map/JacksonMapDeserializeUnitTest.java b/libraries-jackson/jackson-conversions/src/test/java/com/ossez/jackson/map/JacksonMapDeserializeUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions/src/test/java/com/ossez/jackson/map/JacksonMapDeserializeUnitTest.java rename to libraries-jackson/jackson-conversions/src/test/java/com/ossez/jackson/map/JacksonMapDeserializeUnitTest.java diff --git a/jackson-modules/jackson-conversions/src/test/java/com/ossez/jackson/map/JacksonMapSerializeUnitTest.java b/libraries-jackson/jackson-conversions/src/test/java/com/ossez/jackson/map/JacksonMapSerializeUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions/src/test/java/com/ossez/jackson/map/JacksonMapSerializeUnitTest.java rename to libraries-jackson/jackson-conversions/src/test/java/com/ossez/jackson/map/JacksonMapSerializeUnitTest.java diff --git a/jackson-modules/jackson-conversions/src/test/java/com/ossez/jackson/mapnull/JacksonMapNullUnitTest.java b/libraries-jackson/jackson-conversions/src/test/java/com/ossez/jackson/mapnull/JacksonMapNullUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions/src/test/java/com/ossez/jackson/mapnull/JacksonMapNullUnitTest.java rename to libraries-jackson/jackson-conversions/src/test/java/com/ossez/jackson/mapnull/JacksonMapNullUnitTest.java diff --git a/jackson-modules/jackson-conversions/src/test/java/com/ossez/jackson/nested/DeserializeWithNestedPropertiesUnitTest.java b/libraries-jackson/jackson-conversions/src/test/java/com/ossez/jackson/nested/DeserializeWithNestedPropertiesUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions/src/test/java/com/ossez/jackson/nested/DeserializeWithNestedPropertiesUnitTest.java rename to libraries-jackson/jackson-conversions/src/test/java/com/ossez/jackson/nested/DeserializeWithNestedPropertiesUnitTest.java diff --git a/jackson-modules/jackson-conversions/src/test/java/com/ossez/jackson/nested/Product.java b/libraries-jackson/jackson-conversions/src/test/java/com/ossez/jackson/nested/Product.java similarity index 100% rename from jackson-modules/jackson-conversions/src/test/java/com/ossez/jackson/nested/Product.java rename to libraries-jackson/jackson-conversions/src/test/java/com/ossez/jackson/nested/Product.java diff --git a/jackson-modules/jackson-conversions/src/test/java/com/ossez/jackson/nested/ProductDeserializer.java b/libraries-jackson/jackson-conversions/src/test/java/com/ossez/jackson/nested/ProductDeserializer.java similarity index 100% rename from jackson-modules/jackson-conversions/src/test/java/com/ossez/jackson/nested/ProductDeserializer.java rename to libraries-jackson/jackson-conversions/src/test/java/com/ossez/jackson/nested/ProductDeserializer.java diff --git a/jackson-modules/jackson-conversions/src/test/java/com/ossez/jackson/tocollection/JacksonCollectionDeserializationUnitTest.java b/libraries-jackson/jackson-conversions/src/test/java/com/ossez/jackson/tocollection/JacksonCollectionDeserializationUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions/src/test/java/com/ossez/jackson/tocollection/JacksonCollectionDeserializationUnitTest.java rename to libraries-jackson/jackson-conversions/src/test/java/com/ossez/jackson/tocollection/JacksonCollectionDeserializationUnitTest.java diff --git a/jackson-modules/jackson-conversions/src/test/java/com/ossez/jackson/tojsonnode/StringToJsonNodeUnitTest.java b/libraries-jackson/jackson-conversions/src/test/java/com/ossez/jackson/tojsonnode/StringToJsonNodeUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions/src/test/java/com/ossez/jackson/tojsonnode/StringToJsonNodeUnitTest.java rename to libraries-jackson/jackson-conversions/src/test/java/com/ossez/jackson/tojsonnode/StringToJsonNodeUnitTest.java diff --git a/jackson-modules/jackson-conversions/src/test/java/com/ossez/jackson/xml/XMLSerializeDeserializeUnitTest.java b/libraries-jackson/jackson-conversions/src/test/java/com/ossez/jackson/xml/XMLSerializeDeserializeUnitTest.java similarity index 100% rename from jackson-modules/jackson-conversions/src/test/java/com/ossez/jackson/xml/XMLSerializeDeserializeUnitTest.java rename to libraries-jackson/jackson-conversions/src/test/java/com/ossez/jackson/xml/XMLSerializeDeserializeUnitTest.java diff --git a/jackson-modules/jackson-conversions/src/test/resources/simple_bean.xml b/libraries-jackson/jackson-conversions/src/test/resources/simple_bean.xml similarity index 100% rename from jackson-modules/jackson-conversions/src/test/resources/simple_bean.xml rename to libraries-jackson/jackson-conversions/src/test/resources/simple_bean.xml diff --git a/jackson-modules/jackson-custom-conversions/README.md b/libraries-jackson/jackson-custom-conversions/README.md similarity index 100% rename from jackson-modules/jackson-custom-conversions/README.md rename to libraries-jackson/jackson-custom-conversions/README.md diff --git a/jackson-modules/jackson-custom-conversions/javatypefromclassinjava/JavaTypeFromClassUnitTest.java b/libraries-jackson/jackson-custom-conversions/javatypefromclassinjava/JavaTypeFromClassUnitTest.java similarity index 96% rename from jackson-modules/jackson-custom-conversions/javatypefromclassinjava/JavaTypeFromClassUnitTest.java rename to libraries-jackson/jackson-custom-conversions/javatypefromclassinjava/JavaTypeFromClassUnitTest.java index bb95d9987b..f41f297fba 100644 --- a/jackson-modules/jackson-custom-conversions/javatypefromclassinjava/JavaTypeFromClassUnitTest.java +++ b/libraries-jackson/jackson-custom-conversions/javatypefromclassinjava/JavaTypeFromClassUnitTest.java @@ -1,38 +1,38 @@ -package com.baeldung.javatypefromclassinjava; - -import com.fasterxml.jackson.databind.JavaType; -import com.fasterxml.jackson.databind.type.TypeFactory; -import org.junit.Test; - -import static org.junit.Assert.assertNotNull; - -public class JavaTypeFromClassUnitTest { - - @Test - public void givenGenericClass_whenCreatingJavaType_thenJavaTypeNotNull() { - Class myClass = MyGenericClass.class; - - JavaType javaType = TypeFactory.defaultInstance().constructType(myClass); - - assertNotNull(javaType); - } - - @Test - public void givenParametricType_whenCreatingJavaType_thenJavaTypeNotNull() { - Class containerClass = Container.class; - Class elementType = String.class; - - JavaType javaType = TypeFactory.defaultInstance().constructParametricType(containerClass, elementType); - - assertNotNull(javaType); - } - - static class MyGenericClass { - // Class implementation - } - - static class Container { - // Class implementation - } - -} +package com.baeldung.javatypefromclassinjava; + +import com.fasterxml.jackson.databind.JavaType; +import com.fasterxml.jackson.databind.type.TypeFactory; +import org.junit.Test; + +import static org.junit.Assert.assertNotNull; + +public class JavaTypeFromClassUnitTest { + + @Test + public void givenGenericClass_whenCreatingJavaType_thenJavaTypeNotNull() { + Class myClass = MyGenericClass.class; + + JavaType javaType = TypeFactory.defaultInstance().constructType(myClass); + + assertNotNull(javaType); + } + + @Test + public void givenParametricType_whenCreatingJavaType_thenJavaTypeNotNull() { + Class containerClass = Container.class; + Class elementType = String.class; + + JavaType javaType = TypeFactory.defaultInstance().constructParametricType(containerClass, elementType); + + assertNotNull(javaType); + } + + static class MyGenericClass { + // Class implementation + } + + static class Container { + // Class implementation + } + +} diff --git a/jackson-modules/jackson-custom-conversions/pom.xml b/libraries-jackson/jackson-custom-conversions/pom.xml similarity index 96% rename from jackson-modules/jackson-custom-conversions/pom.xml rename to libraries-jackson/jackson-custom-conversions/pom.xml index 8772558bf3..cb8a7a0ed3 100644 --- a/jackson-modules/jackson-custom-conversions/pom.xml +++ b/libraries-jackson/jackson-custom-conversions/pom.xml @@ -9,7 +9,7 @@ com.ossez - jackson-modules + libraries-jackson 0.0.2-SNAPSHOT diff --git a/jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/defaultserializercustomserializer/File.java b/libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/defaultserializercustomserializer/File.java similarity index 100% rename from jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/defaultserializercustomserializer/File.java rename to libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/defaultserializercustomserializer/File.java diff --git a/jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/defaultserializercustomserializer/Folder.java b/libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/defaultserializercustomserializer/Folder.java similarity index 100% rename from jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/defaultserializercustomserializer/Folder.java rename to libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/defaultserializercustomserializer/Folder.java diff --git a/jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/defaultserializercustomserializer/FolderBeanSerializerModifier.java b/libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/defaultserializercustomserializer/FolderBeanSerializerModifier.java similarity index 100% rename from jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/defaultserializercustomserializer/FolderBeanSerializerModifier.java rename to libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/defaultserializercustomserializer/FolderBeanSerializerModifier.java diff --git a/jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/defaultserializercustomserializer/FolderSerializer.java b/libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/defaultserializercustomserializer/FolderSerializer.java similarity index 100% rename from jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/defaultserializercustomserializer/FolderSerializer.java rename to libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/defaultserializercustomserializer/FolderSerializer.java diff --git a/jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/defaultserializercustomserializer/FolderSerializerWithCallingOwnSerializer.java b/libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/defaultserializercustomserializer/FolderSerializerWithCallingOwnSerializer.java similarity index 100% rename from jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/defaultserializercustomserializer/FolderSerializerWithCallingOwnSerializer.java rename to libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/defaultserializercustomserializer/FolderSerializerWithCallingOwnSerializer.java diff --git a/jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/defaultserializercustomserializer/FolderSerializerWithDefaultSerializerStored.java b/libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/defaultserializercustomserializer/FolderSerializerWithDefaultSerializerStored.java similarity index 100% rename from jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/defaultserializercustomserializer/FolderSerializerWithDefaultSerializerStored.java rename to libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/defaultserializercustomserializer/FolderSerializerWithDefaultSerializerStored.java diff --git a/jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/defaultserializercustomserializer/FolderSerializerWithInternalObjectMapper.java b/libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/defaultserializercustomserializer/FolderSerializerWithInternalObjectMapper.java similarity index 100% rename from jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/defaultserializercustomserializer/FolderSerializerWithInternalObjectMapper.java rename to libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/defaultserializercustomserializer/FolderSerializerWithInternalObjectMapper.java diff --git a/jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/defaultserializercustomserializer/FolderSerializerWithSerializerProvider.java b/libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/defaultserializercustomserializer/FolderSerializerWithSerializerProvider.java similarity index 100% rename from jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/defaultserializercustomserializer/FolderSerializerWithSerializerProvider.java rename to libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/defaultserializercustomserializer/FolderSerializerWithSerializerProvider.java diff --git a/jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/ActorJackson.java b/libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/ActorJackson.java similarity index 100% rename from jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/ActorJackson.java rename to libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/ActorJackson.java diff --git a/jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/Item.java b/libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/Item.java similarity index 100% rename from jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/Item.java rename to libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/Item.java diff --git a/jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/ItemDeserializer.java b/libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/ItemDeserializer.java similarity index 100% rename from jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/ItemDeserializer.java rename to libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/ItemDeserializer.java diff --git a/jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/ItemDeserializerOnClass.java b/libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/ItemDeserializerOnClass.java similarity index 100% rename from jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/ItemDeserializerOnClass.java rename to libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/ItemDeserializerOnClass.java diff --git a/jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/ItemWithDeserializer.java b/libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/ItemWithDeserializer.java similarity index 100% rename from jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/ItemWithDeserializer.java rename to libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/ItemWithDeserializer.java diff --git a/jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/ItemWithWrappedUser.java b/libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/ItemWithWrappedUser.java similarity index 95% rename from jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/ItemWithWrappedUser.java rename to libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/ItemWithWrappedUser.java index 827d7dd768..9ad92b9ec6 100644 --- a/jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/ItemWithWrappedUser.java +++ b/libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/ItemWithWrappedUser.java @@ -1,31 +1,31 @@ -package com.baeldung.deserialization; - -public class ItemWithWrappedUser { - - public int id; - public String itemName; - public Wrapper owner; - - public ItemWithWrappedUser() { - super(); - } - - public ItemWithWrappedUser(final int id, final String itemName, final Wrapper owner) { - this.id = id; - this.itemName = itemName; - this.owner = owner; - } - - public int getId() { - return id; - } - - public String getItemName() { - return itemName; - } - - public Wrapper getOwner() { - return owner; - } - -} +package com.baeldung.deserialization; + +public class ItemWithWrappedUser { + + public int id; + public String itemName; + public Wrapper owner; + + public ItemWithWrappedUser() { + super(); + } + + public ItemWithWrappedUser(final int id, final String itemName, final Wrapper owner) { + this.id = id; + this.itemName = itemName; + this.owner = owner; + } + + public int getId() { + return id; + } + + public String getItemName() { + return itemName; + } + + public Wrapper getOwner() { + return owner; + } + +} diff --git a/jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/Movie.java b/libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/Movie.java similarity index 100% rename from jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/Movie.java rename to libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/Movie.java diff --git a/jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/User.java b/libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/User.java similarity index 100% rename from jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/User.java rename to libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/User.java diff --git a/jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/Wrapper.java b/libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/Wrapper.java similarity index 93% rename from jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/Wrapper.java rename to libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/Wrapper.java index a9baa52277..6b1f64e854 100644 --- a/jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/Wrapper.java +++ b/libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/Wrapper.java @@ -1,15 +1,15 @@ -package com.baeldung.deserialization; - -public class Wrapper { - - T value; - - public T getValue() { - return value; - } - - public void setValue(T value) { - this.value = value; - } - -} +package com.baeldung.deserialization; + +public class Wrapper { + + T value; + + public T getValue() { + return value; + } + + public void setValue(T value) { + this.value = value; + } + +} diff --git a/jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/WrapperDeserializer.java b/libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/WrapperDeserializer.java similarity index 97% rename from jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/WrapperDeserializer.java rename to libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/WrapperDeserializer.java index e6a4bea0d6..e086e255a1 100644 --- a/jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/WrapperDeserializer.java +++ b/libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/deserialization/WrapperDeserializer.java @@ -1,30 +1,30 @@ -package com.baeldung.deserialization; - -import java.io.IOException; - -import com.fasterxml.jackson.core.JsonParser; -import com.fasterxml.jackson.databind.BeanProperty; -import com.fasterxml.jackson.databind.DeserializationContext; -import com.fasterxml.jackson.databind.JavaType; -import com.fasterxml.jackson.databind.JsonDeserializer; -import com.fasterxml.jackson.databind.deser.ContextualDeserializer; - -public class WrapperDeserializer extends JsonDeserializer> implements ContextualDeserializer { - - private JavaType type; - - @Override - public JsonDeserializer createContextual(DeserializationContext ctxt, BeanProperty property) { - this.type = property.getType() - .containedType(0); - return this; - } - - @Override - public Wrapper deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException { - Wrapper wrapper = new Wrapper<>(); - wrapper.setValue(deserializationContext.readValue(jsonParser, type)); - return wrapper; - } - -} +package com.baeldung.deserialization; + +import java.io.IOException; + +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.BeanProperty; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.JavaType; +import com.fasterxml.jackson.databind.JsonDeserializer; +import com.fasterxml.jackson.databind.deser.ContextualDeserializer; + +public class WrapperDeserializer extends JsonDeserializer> implements ContextualDeserializer { + + private JavaType type; + + @Override + public JsonDeserializer createContextual(DeserializationContext ctxt, BeanProperty property) { + this.type = property.getType() + .containedType(0); + return this; + } + + @Override + public Wrapper deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException { + Wrapper wrapper = new Wrapper<>(); + wrapper.setValue(deserializationContext.readValue(jsonParser, type)); + return wrapper; + } + +} diff --git a/jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/offsetdatetime/Main.java b/libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/offsetdatetime/Main.java similarity index 100% rename from jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/offsetdatetime/Main.java rename to libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/offsetdatetime/Main.java diff --git a/jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/offsetdatetime/OffsetDateTimeDeserializer.java b/libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/offsetdatetime/OffsetDateTimeDeserializer.java similarity index 100% rename from jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/offsetdatetime/OffsetDateTimeDeserializer.java rename to libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/offsetdatetime/OffsetDateTimeDeserializer.java diff --git a/jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/offsetdatetime/OffsetDateTimeSerializer.java b/libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/offsetdatetime/OffsetDateTimeSerializer.java similarity index 100% rename from jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/offsetdatetime/OffsetDateTimeSerializer.java rename to libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/offsetdatetime/OffsetDateTimeSerializer.java diff --git a/jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/offsetdatetime/User.java b/libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/offsetdatetime/User.java similarity index 100% rename from jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/offsetdatetime/User.java rename to libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/offsetdatetime/User.java diff --git a/jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/serialization/Item.java b/libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/serialization/Item.java similarity index 100% rename from jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/serialization/Item.java rename to libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/serialization/Item.java diff --git a/jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/serialization/ItemSerializer.java b/libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/serialization/ItemSerializer.java similarity index 100% rename from jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/serialization/ItemSerializer.java rename to libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/serialization/ItemSerializer.java diff --git a/jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/serialization/ItemSerializerOnClass.java b/libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/serialization/ItemSerializerOnClass.java similarity index 100% rename from jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/serialization/ItemSerializerOnClass.java rename to libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/serialization/ItemSerializerOnClass.java diff --git a/jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/serialization/ItemWithSerializer.java b/libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/serialization/ItemWithSerializer.java similarity index 100% rename from jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/serialization/ItemWithSerializer.java rename to libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/serialization/ItemWithSerializer.java diff --git a/jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/serialization/User.java b/libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/serialization/User.java similarity index 100% rename from jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/serialization/User.java rename to libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/serialization/User.java diff --git a/jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/skipfields/Address.java b/libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/skipfields/Address.java similarity index 100% rename from jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/skipfields/Address.java rename to libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/skipfields/Address.java diff --git a/jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/skipfields/Hidable.java b/libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/skipfields/Hidable.java similarity index 100% rename from jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/skipfields/Hidable.java rename to libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/skipfields/Hidable.java diff --git a/jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/skipfields/HidableSerializer.java b/libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/skipfields/HidableSerializer.java similarity index 100% rename from jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/skipfields/HidableSerializer.java rename to libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/skipfields/HidableSerializer.java diff --git a/jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/skipfields/MyDtoWithFilter.java b/libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/skipfields/MyDtoWithFilter.java similarity index 100% rename from jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/skipfields/MyDtoWithFilter.java rename to libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/skipfields/MyDtoWithFilter.java diff --git a/jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/skipfields/Person.java b/libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/skipfields/Person.java similarity index 100% rename from jackson-modules/jackson-custom-conversions/src/main/java/com/baeldung/skipfields/Person.java rename to libraries-jackson/jackson-custom-conversions/src/main/java/com/baeldung/skipfields/Person.java diff --git a/jackson-modules/jackson-custom-conversions/src/test/java/com/baeldung/defaultserializercustomserializer/CallingDefaultSerializerUnitTest.java b/libraries-jackson/jackson-custom-conversions/src/test/java/com/baeldung/defaultserializercustomserializer/CallingDefaultSerializerUnitTest.java similarity index 100% rename from jackson-modules/jackson-custom-conversions/src/test/java/com/baeldung/defaultserializercustomserializer/CallingDefaultSerializerUnitTest.java rename to libraries-jackson/jackson-custom-conversions/src/test/java/com/baeldung/defaultserializercustomserializer/CallingDefaultSerializerUnitTest.java diff --git a/jackson-modules/jackson-custom-conversions/src/test/java/com/baeldung/deserialization/CustomDeserializationUnitTest.java b/libraries-jackson/jackson-custom-conversions/src/test/java/com/baeldung/deserialization/CustomDeserializationUnitTest.java similarity index 100% rename from jackson-modules/jackson-custom-conversions/src/test/java/com/baeldung/deserialization/CustomDeserializationUnitTest.java rename to libraries-jackson/jackson-custom-conversions/src/test/java/com/baeldung/deserialization/CustomDeserializationUnitTest.java diff --git a/jackson-modules/jackson-custom-conversions/src/test/java/com/baeldung/offsetdatetime/MainUnitTest.java b/libraries-jackson/jackson-custom-conversions/src/test/java/com/baeldung/offsetdatetime/MainUnitTest.java similarity index 100% rename from jackson-modules/jackson-custom-conversions/src/test/java/com/baeldung/offsetdatetime/MainUnitTest.java rename to libraries-jackson/jackson-custom-conversions/src/test/java/com/baeldung/offsetdatetime/MainUnitTest.java diff --git a/jackson-modules/jackson-custom-conversions/src/test/java/com/baeldung/serialization/CustomSerializationUnitTest.java b/libraries-jackson/jackson-custom-conversions/src/test/java/com/baeldung/serialization/CustomSerializationUnitTest.java similarity index 100% rename from jackson-modules/jackson-custom-conversions/src/test/java/com/baeldung/serialization/CustomSerializationUnitTest.java rename to libraries-jackson/jackson-custom-conversions/src/test/java/com/baeldung/serialization/CustomSerializationUnitTest.java diff --git a/jackson-modules/jackson-custom-conversions/src/test/java/com/baeldung/skipfields/IgnoreFieldsWithFilterUnitTest.java b/libraries-jackson/jackson-custom-conversions/src/test/java/com/baeldung/skipfields/IgnoreFieldsWithFilterUnitTest.java similarity index 100% rename from jackson-modules/jackson-custom-conversions/src/test/java/com/baeldung/skipfields/IgnoreFieldsWithFilterUnitTest.java rename to libraries-jackson/jackson-custom-conversions/src/test/java/com/baeldung/skipfields/IgnoreFieldsWithFilterUnitTest.java diff --git a/jackson-modules/jackson-custom-conversions/src/test/java/com/baeldung/skipfields/JacksonDynamicIgnoreUnitTest.java b/libraries-jackson/jackson-custom-conversions/src/test/java/com/baeldung/skipfields/JacksonDynamicIgnoreUnitTest.java similarity index 100% rename from jackson-modules/jackson-custom-conversions/src/test/java/com/baeldung/skipfields/JacksonDynamicIgnoreUnitTest.java rename to libraries-jackson/jackson-custom-conversions/src/test/java/com/baeldung/skipfields/JacksonDynamicIgnoreUnitTest.java diff --git a/jackson-modules/jackson-exceptions/README.md b/libraries-jackson/jackson-exceptions/README.md similarity index 100% rename from jackson-modules/jackson-exceptions/README.md rename to libraries-jackson/jackson-exceptions/README.md diff --git a/jackson-modules/jackson-exceptions/pom.xml b/libraries-jackson/jackson-exceptions/pom.xml similarity index 93% rename from jackson-modules/jackson-exceptions/pom.xml rename to libraries-jackson/jackson-exceptions/pom.xml index bb2a9b1810..4230ff7119 100644 --- a/jackson-modules/jackson-exceptions/pom.xml +++ b/libraries-jackson/jackson-exceptions/pom.xml @@ -9,7 +9,7 @@ com.ossez - jackson-modules + libraries-jackson 0.0.2-SNAPSHOT diff --git a/jackson-modules/jackson-exceptions/src/main/java/com/baeldung/exceptions/Contact.java b/libraries-jackson/jackson-exceptions/src/main/java/com/baeldung/exceptions/Contact.java similarity index 100% rename from jackson-modules/jackson-exceptions/src/main/java/com/baeldung/exceptions/Contact.java rename to libraries-jackson/jackson-exceptions/src/main/java/com/baeldung/exceptions/Contact.java diff --git a/jackson-modules/jackson-exceptions/src/main/java/com/baeldung/exceptions/EmptyObject.java b/libraries-jackson/jackson-exceptions/src/main/java/com/baeldung/exceptions/EmptyObject.java similarity index 100% rename from jackson-modules/jackson-exceptions/src/main/java/com/baeldung/exceptions/EmptyObject.java rename to libraries-jackson/jackson-exceptions/src/main/java/com/baeldung/exceptions/EmptyObject.java diff --git a/jackson-modules/jackson-exceptions/src/main/java/com/baeldung/exceptions/Person.java b/libraries-jackson/jackson-exceptions/src/main/java/com/baeldung/exceptions/Person.java similarity index 100% rename from jackson-modules/jackson-exceptions/src/main/java/com/baeldung/exceptions/Person.java rename to libraries-jackson/jackson-exceptions/src/main/java/com/baeldung/exceptions/Person.java diff --git a/jackson-modules/jackson-exceptions/src/main/java/com/baeldung/exceptions/PersonContact.java b/libraries-jackson/jackson-exceptions/src/main/java/com/baeldung/exceptions/PersonContact.java similarity index 100% rename from jackson-modules/jackson-exceptions/src/main/java/com/baeldung/exceptions/PersonContact.java rename to libraries-jackson/jackson-exceptions/src/main/java/com/baeldung/exceptions/PersonContact.java diff --git a/jackson-modules/jackson-exceptions/src/main/java/com/baeldung/exceptions/User.java b/libraries-jackson/jackson-exceptions/src/main/java/com/baeldung/exceptions/User.java similarity index 100% rename from jackson-modules/jackson-exceptions/src/main/java/com/baeldung/exceptions/User.java rename to libraries-jackson/jackson-exceptions/src/main/java/com/baeldung/exceptions/User.java diff --git a/jackson-modules/jackson-exceptions/src/main/java/com/baeldung/exceptions/UserWithConflict.java b/libraries-jackson/jackson-exceptions/src/main/java/com/baeldung/exceptions/UserWithConflict.java similarity index 100% rename from jackson-modules/jackson-exceptions/src/main/java/com/baeldung/exceptions/UserWithConflict.java rename to libraries-jackson/jackson-exceptions/src/main/java/com/baeldung/exceptions/UserWithConflict.java diff --git a/jackson-modules/jackson-exceptions/src/main/java/com/baeldung/exceptions/UserWithNoDefaultConstructor.java b/libraries-jackson/jackson-exceptions/src/main/java/com/baeldung/exceptions/UserWithNoDefaultConstructor.java similarity index 100% rename from jackson-modules/jackson-exceptions/src/main/java/com/baeldung/exceptions/UserWithNoDefaultConstructor.java rename to libraries-jackson/jackson-exceptions/src/main/java/com/baeldung/exceptions/UserWithNoDefaultConstructor.java diff --git a/jackson-modules/jackson-exceptions/src/main/java/com/baeldung/exceptions/UserWithPrivateFields.java b/libraries-jackson/jackson-exceptions/src/main/java/com/baeldung/exceptions/UserWithPrivateFields.java similarity index 100% rename from jackson-modules/jackson-exceptions/src/main/java/com/baeldung/exceptions/UserWithPrivateFields.java rename to libraries-jackson/jackson-exceptions/src/main/java/com/baeldung/exceptions/UserWithPrivateFields.java diff --git a/jackson-modules/jackson-exceptions/src/main/java/com/baeldung/exceptions/UserWithRoot.java b/libraries-jackson/jackson-exceptions/src/main/java/com/baeldung/exceptions/UserWithRoot.java similarity index 100% rename from jackson-modules/jackson-exceptions/src/main/java/com/baeldung/exceptions/UserWithRoot.java rename to libraries-jackson/jackson-exceptions/src/main/java/com/baeldung/exceptions/UserWithRoot.java diff --git a/jackson-modules/jackson-exceptions/src/main/java/com/baeldung/exceptions/Zoo.java b/libraries-jackson/jackson-exceptions/src/main/java/com/baeldung/exceptions/Zoo.java similarity index 100% rename from jackson-modules/jackson-exceptions/src/main/java/com/baeldung/exceptions/Zoo.java rename to libraries-jackson/jackson-exceptions/src/main/java/com/baeldung/exceptions/Zoo.java diff --git a/jackson-modules/jackson-exceptions/src/main/java/com/baeldung/exceptions/ZooConfigured.java b/libraries-jackson/jackson-exceptions/src/main/java/com/baeldung/exceptions/ZooConfigured.java similarity index 100% rename from jackson-modules/jackson-exceptions/src/main/java/com/baeldung/exceptions/ZooConfigured.java rename to libraries-jackson/jackson-exceptions/src/main/java/com/baeldung/exceptions/ZooConfigured.java diff --git a/jackson-modules/jackson-exceptions/src/main/java/com/baeldung/mappingexception/Country.java b/libraries-jackson/jackson-exceptions/src/main/java/com/baeldung/mappingexception/Country.java similarity index 100% rename from jackson-modules/jackson-exceptions/src/main/java/com/baeldung/mappingexception/Country.java rename to libraries-jackson/jackson-exceptions/src/main/java/com/baeldung/mappingexception/Country.java diff --git a/jackson-modules/jackson-exceptions/src/main/java/com/baeldung/mappingexception/MyDtoNoAccessors.java b/libraries-jackson/jackson-exceptions/src/main/java/com/baeldung/mappingexception/MyDtoNoAccessors.java similarity index 100% rename from jackson-modules/jackson-exceptions/src/main/java/com/baeldung/mappingexception/MyDtoNoAccessors.java rename to libraries-jackson/jackson-exceptions/src/main/java/com/baeldung/mappingexception/MyDtoNoAccessors.java diff --git a/jackson-modules/jackson-exceptions/src/main/java/com/baeldung/mappingexception/MyDtoNoAccessorsAndFieldVisibility.java b/libraries-jackson/jackson-exceptions/src/main/java/com/baeldung/mappingexception/MyDtoNoAccessorsAndFieldVisibility.java similarity index 100% rename from jackson-modules/jackson-exceptions/src/main/java/com/baeldung/mappingexception/MyDtoNoAccessorsAndFieldVisibility.java rename to libraries-jackson/jackson-exceptions/src/main/java/com/baeldung/mappingexception/MyDtoNoAccessorsAndFieldVisibility.java diff --git a/jackson-modules/jackson-exceptions/src/main/java/com/baeldung/mismatchedinputexception/Animals.java b/libraries-jackson/jackson-exceptions/src/main/java/com/baeldung/mismatchedinputexception/Animals.java similarity index 100% rename from jackson-modules/jackson-exceptions/src/main/java/com/baeldung/mismatchedinputexception/Animals.java rename to libraries-jackson/jackson-exceptions/src/main/java/com/baeldung/mismatchedinputexception/Animals.java diff --git a/jackson-modules/jackson-exceptions/src/main/java/com/baeldung/mismatchedinputexception/Book.java b/libraries-jackson/jackson-exceptions/src/main/java/com/baeldung/mismatchedinputexception/Book.java similarity index 100% rename from jackson-modules/jackson-exceptions/src/main/java/com/baeldung/mismatchedinputexception/Book.java rename to libraries-jackson/jackson-exceptions/src/main/java/com/baeldung/mismatchedinputexception/Book.java diff --git a/jackson-modules/jackson-exceptions/src/test/java/com/baeldung/exceptions/JacksonExceptionsUnitTest.java b/libraries-jackson/jackson-exceptions/src/test/java/com/baeldung/exceptions/JacksonExceptionsUnitTest.java similarity index 100% rename from jackson-modules/jackson-exceptions/src/test/java/com/baeldung/exceptions/JacksonExceptionsUnitTest.java rename to libraries-jackson/jackson-exceptions/src/test/java/com/baeldung/exceptions/JacksonExceptionsUnitTest.java diff --git a/jackson-modules/jackson-exceptions/src/test/java/com/baeldung/mappingexception/JacksonMappingExceptionUnitTest.java b/libraries-jackson/jackson-exceptions/src/test/java/com/baeldung/mappingexception/JacksonMappingExceptionUnitTest.java similarity index 100% rename from jackson-modules/jackson-exceptions/src/test/java/com/baeldung/mappingexception/JacksonMappingExceptionUnitTest.java rename to libraries-jackson/jackson-exceptions/src/test/java/com/baeldung/mappingexception/JacksonMappingExceptionUnitTest.java diff --git a/jackson-modules/jackson-exceptions/src/test/java/com/baeldung/mismatchedinputexception/MismatchedinputExceptionUnitTest.java b/libraries-jackson/jackson-exceptions/src/test/java/com/baeldung/mismatchedinputexception/MismatchedinputExceptionUnitTest.java similarity index 100% rename from jackson-modules/jackson-exceptions/src/test/java/com/baeldung/mismatchedinputexception/MismatchedinputExceptionUnitTest.java rename to libraries-jackson/jackson-exceptions/src/test/java/com/baeldung/mismatchedinputexception/MismatchedinputExceptionUnitTest.java diff --git a/jackson-modules/jackson-jr/README.md b/libraries-jackson/jackson-jr/README.md similarity index 100% rename from jackson-modules/jackson-jr/README.md rename to libraries-jackson/jackson-jr/README.md diff --git a/jackson-modules/jackson-jr/pom.xml b/libraries-jackson/jackson-jr/pom.xml similarity index 96% rename from jackson-modules/jackson-jr/pom.xml rename to libraries-jackson/jackson-jr/pom.xml index 99be91b8a1..6648c0066a 100644 --- a/jackson-modules/jackson-jr/pom.xml +++ b/libraries-jackson/jackson-jr/pom.xml @@ -8,7 +8,7 @@ com.ossez - jackson-modules + libraries-jackson 0.0.2-SNAPSHOT diff --git a/jackson-modules/jackson-jr/src/main/java/com/ossez/jacksonjr/CustomDateDeserializer.java b/libraries-jackson/jackson-jr/src/main/java/com/ossez/jacksonjr/CustomDateDeserializer.java similarity index 100% rename from jackson-modules/jackson-jr/src/main/java/com/ossez/jacksonjr/CustomDateDeserializer.java rename to libraries-jackson/jackson-jr/src/main/java/com/ossez/jacksonjr/CustomDateDeserializer.java diff --git a/jackson-modules/jackson-jr/src/main/java/com/ossez/jacksonjr/CustomDateSerializer.java b/libraries-jackson/jackson-jr/src/main/java/com/ossez/jacksonjr/CustomDateSerializer.java similarity index 100% rename from jackson-modules/jackson-jr/src/main/java/com/ossez/jacksonjr/CustomDateSerializer.java rename to libraries-jackson/jackson-jr/src/main/java/com/ossez/jacksonjr/CustomDateSerializer.java diff --git a/jackson-modules/jackson-jr/src/main/java/com/ossez/jacksonjr/JacksonJrFeatures.java b/libraries-jackson/jackson-jr/src/main/java/com/ossez/jacksonjr/JacksonJrFeatures.java similarity index 100% rename from jackson-modules/jackson-jr/src/main/java/com/ossez/jacksonjr/JacksonJrFeatures.java rename to libraries-jackson/jackson-jr/src/main/java/com/ossez/jacksonjr/JacksonJrFeatures.java diff --git a/jackson-modules/jackson-jr/src/main/java/com/ossez/jacksonjr/MyHandlerProvider.java b/libraries-jackson/jackson-jr/src/main/java/com/ossez/jacksonjr/MyHandlerProvider.java similarity index 100% rename from jackson-modules/jackson-jr/src/main/java/com/ossez/jacksonjr/MyHandlerProvider.java rename to libraries-jackson/jackson-jr/src/main/java/com/ossez/jacksonjr/MyHandlerProvider.java diff --git a/jackson-modules/jackson-jr/src/main/java/com/ossez/jacksonjr/Person.java b/libraries-jackson/jackson-jr/src/main/java/com/ossez/jacksonjr/Person.java similarity index 100% rename from jackson-modules/jackson-jr/src/main/java/com/ossez/jacksonjr/Person.java rename to libraries-jackson/jackson-jr/src/main/java/com/ossez/jacksonjr/Person.java diff --git a/jackson-modules/jackson-jr/src/test/java/com/ossez/jacksonjr/CreateJSONTest.java b/libraries-jackson/jackson-jr/src/test/java/com/ossez/jacksonjr/CreateJSONTest.java similarity index 100% rename from jackson-modules/jackson-jr/src/test/java/com/ossez/jacksonjr/CreateJSONTest.java rename to libraries-jackson/jackson-jr/src/test/java/com/ossez/jacksonjr/CreateJSONTest.java diff --git a/jackson-modules/jackson-jr/src/test/java/com/ossez/jacksonjr/JacksonJrFeaturesUnitTest.java b/libraries-jackson/jackson-jr/src/test/java/com/ossez/jacksonjr/JacksonJrFeaturesUnitTest.java similarity index 100% rename from jackson-modules/jackson-jr/src/test/java/com/ossez/jacksonjr/JacksonJrFeaturesUnitTest.java rename to libraries-jackson/jackson-jr/src/test/java/com/ossez/jacksonjr/JacksonJrFeaturesUnitTest.java diff --git a/jackson-modules/jackson-polymorphic-deserialization/README.md b/libraries-jackson/jackson-polymorphic-deserialization/README.md similarity index 100% rename from jackson-modules/jackson-polymorphic-deserialization/README.md rename to libraries-jackson/jackson-polymorphic-deserialization/README.md diff --git a/jackson-modules/jackson-polymorphic-deserialization/pom.xml b/libraries-jackson/jackson-polymorphic-deserialization/pom.xml similarity index 96% rename from jackson-modules/jackson-polymorphic-deserialization/pom.xml rename to libraries-jackson/jackson-polymorphic-deserialization/pom.xml index edf0d0e71b..6b43ff0059 100644 --- a/jackson-modules/jackson-polymorphic-deserialization/pom.xml +++ b/libraries-jackson/jackson-polymorphic-deserialization/pom.xml @@ -8,7 +8,7 @@ com.ossez - jackson-modules + libraries-jackson 0.0.2-SNAPSHOT diff --git a/jackson-modules/jackson-polymorphic-deserialization/src/main/java/com/ossez/jackson/polymorphic/deserialization/reflection/Vehicle.java b/libraries-jackson/jackson-polymorphic-deserialization/src/main/java/com/ossez/jackson/polymorphic/deserialization/reflection/Vehicle.java similarity index 100% rename from jackson-modules/jackson-polymorphic-deserialization/src/main/java/com/ossez/jackson/polymorphic/deserialization/reflection/Vehicle.java rename to libraries-jackson/jackson-polymorphic-deserialization/src/main/java/com/ossez/jackson/polymorphic/deserialization/reflection/Vehicle.java diff --git a/jackson-modules/jackson-polymorphic-deserialization/src/main/java/com/ossez/jackson/polymorphic/deserialization/reflection/VehicleSubType.java b/libraries-jackson/jackson-polymorphic-deserialization/src/main/java/com/ossez/jackson/polymorphic/deserialization/reflection/VehicleSubType.java similarity index 100% rename from jackson-modules/jackson-polymorphic-deserialization/src/main/java/com/ossez/jackson/polymorphic/deserialization/reflection/VehicleSubType.java rename to libraries-jackson/jackson-polymorphic-deserialization/src/main/java/com/ossez/jackson/polymorphic/deserialization/reflection/VehicleSubType.java diff --git a/jackson-modules/jackson-polymorphic-deserialization/src/main/java/com/ossez/jackson/polymorphic/deserialization/typeHandlingAnnotations/Vehicle.java b/libraries-jackson/jackson-polymorphic-deserialization/src/main/java/com/ossez/jackson/polymorphic/deserialization/typeHandlingAnnotations/Vehicle.java similarity index 100% rename from jackson-modules/jackson-polymorphic-deserialization/src/main/java/com/ossez/jackson/polymorphic/deserialization/typeHandlingAnnotations/Vehicle.java rename to libraries-jackson/jackson-polymorphic-deserialization/src/main/java/com/ossez/jackson/polymorphic/deserialization/typeHandlingAnnotations/Vehicle.java diff --git a/jackson-modules/jackson-polymorphic-deserialization/src/test/java/com/ossez/jackson/polymorphic/deserialization/reflection/ReflectionUnitTest.java b/libraries-jackson/jackson-polymorphic-deserialization/src/test/java/com/ossez/jackson/polymorphic/deserialization/reflection/ReflectionUnitTest.java similarity index 100% rename from jackson-modules/jackson-polymorphic-deserialization/src/test/java/com/ossez/jackson/polymorphic/deserialization/reflection/ReflectionUnitTest.java rename to libraries-jackson/jackson-polymorphic-deserialization/src/test/java/com/ossez/jackson/polymorphic/deserialization/reflection/ReflectionUnitTest.java diff --git a/jackson-modules/jackson-polymorphic-deserialization/src/test/java/com/ossez/jackson/polymorphic/deserialization/typeHandlingAnnotations/TypeHandlingAnnotationsUnitTest.java b/libraries-jackson/jackson-polymorphic-deserialization/src/test/java/com/ossez/jackson/polymorphic/deserialization/typeHandlingAnnotations/TypeHandlingAnnotationsUnitTest.java similarity index 100% rename from jackson-modules/jackson-polymorphic-deserialization/src/test/java/com/ossez/jackson/polymorphic/deserialization/typeHandlingAnnotations/TypeHandlingAnnotationsUnitTest.java rename to libraries-jackson/jackson-polymorphic-deserialization/src/test/java/com/ossez/jackson/polymorphic/deserialization/typeHandlingAnnotations/TypeHandlingAnnotationsUnitTest.java diff --git a/jackson-modules/jackson/README.md b/libraries-jackson/jackson/README.md similarity index 82% rename from jackson-modules/jackson/README.md rename to libraries-jackson/jackson/README.md index cc79c30e5a..1090234ab8 100644 --- a/jackson-modules/jackson/README.md +++ b/libraries-jackson/jackson/README.md @@ -4,10 +4,10 @@ ### 相关课程和讨论 -有关 "计算机设计相关的课程" :https://www.ossez.com/ +有关 "计算机 Java 程序语言相关的教程" 请参考社区 :https://www.isharkfly.com/c/computer-program/java/15 ### 相关文章 -- [Using Optional with Jackson](https://www.baeldung.com/jackson-optional) +- [Jackson 中使用 Optional](https://track.ossez.com/articles/PL-A-37491940/Jackson-Optional) - [Compare Two JSON Objects with Jackson](https://www.baeldung.com/jackson-compare-two-json-objects) - [Jackson vs Gson](https://www.baeldung.com/jackson-vs-gson) - [Inheritance with Jackson](https://www.baeldung.com/jackson-inheritance) diff --git a/jackson-modules/jackson/pom.xml b/libraries-jackson/jackson/pom.xml similarity index 97% rename from jackson-modules/jackson/pom.xml rename to libraries-jackson/jackson/pom.xml index fdf0c30749..def9a8d9cf 100644 --- a/jackson-modules/jackson/pom.xml +++ b/libraries-jackson/jackson/pom.xml @@ -9,7 +9,7 @@ com.ossez - jackson-modules + libraries-jackson 0.0.2-SNAPSHOT diff --git a/jackson-modules/jackson/src/main/java/com/ossez/jackson/defaultvalues/NonAnnotatedDefaultValue.java b/libraries-jackson/jackson/src/main/java/com/ossez/jackson/defaultvalues/NonAnnotatedDefaultValue.java similarity index 100% rename from jackson-modules/jackson/src/main/java/com/ossez/jackson/defaultvalues/NonAnnotatedDefaultValue.java rename to libraries-jackson/jackson/src/main/java/com/ossez/jackson/defaultvalues/NonAnnotatedDefaultValue.java diff --git a/jackson-modules/jackson/src/main/java/com/ossez/jackson/defaultvalues/NullsSkipDefaultValue.java b/libraries-jackson/jackson/src/main/java/com/ossez/jackson/defaultvalues/NullsSkipDefaultValue.java similarity index 100% rename from jackson-modules/jackson/src/main/java/com/ossez/jackson/defaultvalues/NullsSkipDefaultValue.java rename to libraries-jackson/jackson/src/main/java/com/ossez/jackson/defaultvalues/NullsSkipDefaultValue.java diff --git a/jackson-modules/jackson/src/main/java/com/ossez/jackson/defaultvalues/SetterDefaultValue.java b/libraries-jackson/jackson/src/main/java/com/ossez/jackson/defaultvalues/SetterDefaultValue.java similarity index 100% rename from jackson-modules/jackson/src/main/java/com/ossez/jackson/defaultvalues/SetterDefaultValue.java rename to libraries-jackson/jackson/src/main/java/com/ossez/jackson/defaultvalues/SetterDefaultValue.java diff --git a/jackson-modules/jackson/src/main/java/com/ossez/jackson/deserialization/jacksoninject/Person.java b/libraries-jackson/jackson/src/main/java/com/ossez/jackson/deserialization/jacksoninject/Person.java similarity index 100% rename from jackson-modules/jackson/src/main/java/com/ossez/jackson/deserialization/jacksoninject/Person.java rename to libraries-jackson/jackson/src/main/java/com/ossez/jackson/deserialization/jacksoninject/Person.java diff --git a/jackson-modules/jackson/src/main/java/com/ossez/jackson/deserialization/jsonanysetter/Inventory.java b/libraries-jackson/jackson/src/main/java/com/ossez/jackson/deserialization/jsonanysetter/Inventory.java similarity index 100% rename from jackson-modules/jackson/src/main/java/com/ossez/jackson/deserialization/jsonanysetter/Inventory.java rename to libraries-jackson/jackson/src/main/java/com/ossez/jackson/deserialization/jsonanysetter/Inventory.java diff --git a/jackson-modules/jackson/src/main/java/com/ossez/jackson/deserialization/jsondeserialize/Book.java b/libraries-jackson/jackson/src/main/java/com/ossez/jackson/deserialization/jsondeserialize/Book.java similarity index 100% rename from jackson-modules/jackson/src/main/java/com/ossez/jackson/deserialization/jsondeserialize/Book.java rename to libraries-jackson/jackson/src/main/java/com/ossez/jackson/deserialization/jsondeserialize/Book.java diff --git a/jackson-modules/jackson/src/main/java/com/ossez/jackson/deserialization/jsondeserialize/CustomDateDeserializer.java b/libraries-jackson/jackson/src/main/java/com/ossez/jackson/deserialization/jsondeserialize/CustomDateDeserializer.java similarity index 100% rename from jackson-modules/jackson/src/main/java/com/ossez/jackson/deserialization/jsondeserialize/CustomDateDeserializer.java rename to libraries-jackson/jackson/src/main/java/com/ossez/jackson/deserialization/jsondeserialize/CustomDateDeserializer.java diff --git a/jackson-modules/jackson/src/main/java/com/ossez/jackson/deserialization/jsongeneric/JsonResponse.java b/libraries-jackson/jackson/src/main/java/com/ossez/jackson/deserialization/jsongeneric/JsonResponse.java similarity index 100% rename from jackson-modules/jackson/src/main/java/com/ossez/jackson/deserialization/jsongeneric/JsonResponse.java rename to libraries-jackson/jackson/src/main/java/com/ossez/jackson/deserialization/jsongeneric/JsonResponse.java diff --git a/jackson-modules/jackson/src/main/java/com/ossez/jackson/deserialization/jsongeneric/User.java b/libraries-jackson/jackson/src/main/java/com/ossez/jackson/deserialization/jsongeneric/User.java similarity index 100% rename from jackson-modules/jackson/src/main/java/com/ossez/jackson/deserialization/jsongeneric/User.java rename to libraries-jackson/jackson/src/main/java/com/ossez/jackson/deserialization/jsongeneric/User.java diff --git a/jackson-modules/jackson/src/main/java/com/ossez/jackson/domain/Person.java b/libraries-jackson/jackson/src/main/java/com/ossez/jackson/domain/Person.java similarity index 100% rename from jackson-modules/jackson/src/main/java/com/ossez/jackson/domain/Person.java rename to libraries-jackson/jackson/src/main/java/com/ossez/jackson/domain/Person.java diff --git a/jackson-modules/jackson/src/main/java/com/ossez/jackson/inheritance/Event.java b/libraries-jackson/jackson/src/main/java/com/ossez/jackson/inheritance/Event.java similarity index 100% rename from jackson-modules/jackson/src/main/java/com/ossez/jackson/inheritance/Event.java rename to libraries-jackson/jackson/src/main/java/com/ossez/jackson/inheritance/Event.java diff --git a/jackson-modules/jackson/src/main/java/com/ossez/jackson/inheritance/IgnoranceAnnotationStructure.java b/libraries-jackson/jackson/src/main/java/com/ossez/jackson/inheritance/IgnoranceAnnotationStructure.java similarity index 100% rename from jackson-modules/jackson/src/main/java/com/ossez/jackson/inheritance/IgnoranceAnnotationStructure.java rename to libraries-jackson/jackson/src/main/java/com/ossez/jackson/inheritance/IgnoranceAnnotationStructure.java diff --git a/jackson-modules/jackson/src/main/java/com/ossez/jackson/inheritance/IgnoranceMixinOrIntrospection.java b/libraries-jackson/jackson/src/main/java/com/ossez/jackson/inheritance/IgnoranceMixinOrIntrospection.java similarity index 100% rename from jackson-modules/jackson/src/main/java/com/ossez/jackson/inheritance/IgnoranceMixinOrIntrospection.java rename to libraries-jackson/jackson/src/main/java/com/ossez/jackson/inheritance/IgnoranceMixinOrIntrospection.java diff --git a/jackson-modules/jackson/src/main/java/com/ossez/jackson/inheritance/ItemIdAddedToUser.java b/libraries-jackson/jackson/src/main/java/com/ossez/jackson/inheritance/ItemIdAddedToUser.java similarity index 100% rename from jackson-modules/jackson/src/main/java/com/ossez/jackson/inheritance/ItemIdAddedToUser.java rename to libraries-jackson/jackson/src/main/java/com/ossez/jackson/inheritance/ItemIdAddedToUser.java diff --git a/jackson-modules/jackson/src/main/java/com/ossez/jackson/inheritance/ItemIdRemovedFromUser.java b/libraries-jackson/jackson/src/main/java/com/ossez/jackson/inheritance/ItemIdRemovedFromUser.java similarity index 100% rename from jackson-modules/jackson/src/main/java/com/ossez/jackson/inheritance/ItemIdRemovedFromUser.java rename to libraries-jackson/jackson/src/main/java/com/ossez/jackson/inheritance/ItemIdRemovedFromUser.java diff --git a/jackson-modules/jackson/src/main/java/com/ossez/jackson/inheritance/SubTypeConstructorStructure.java b/libraries-jackson/jackson/src/main/java/com/ossez/jackson/inheritance/SubTypeConstructorStructure.java similarity index 100% rename from jackson-modules/jackson/src/main/java/com/ossez/jackson/inheritance/SubTypeConstructorStructure.java rename to libraries-jackson/jackson/src/main/java/com/ossez/jackson/inheritance/SubTypeConstructorStructure.java diff --git a/jackson-modules/jackson/src/main/java/com/ossez/jackson/inheritance/SubTypeConversionStructure.java b/libraries-jackson/jackson/src/main/java/com/ossez/jackson/inheritance/SubTypeConversionStructure.java similarity index 100% rename from jackson-modules/jackson/src/main/java/com/ossez/jackson/inheritance/SubTypeConversionStructure.java rename to libraries-jackson/jackson/src/main/java/com/ossez/jackson/inheritance/SubTypeConversionStructure.java diff --git a/jackson-modules/jackson/src/main/java/com/ossez/jackson/inheritance/TypeInfoAnnotatedStructure.java b/libraries-jackson/jackson/src/main/java/com/ossez/jackson/inheritance/TypeInfoAnnotatedStructure.java similarity index 100% rename from jackson-modules/jackson/src/main/java/com/ossez/jackson/inheritance/TypeInfoAnnotatedStructure.java rename to libraries-jackson/jackson/src/main/java/com/ossez/jackson/inheritance/TypeInfoAnnotatedStructure.java diff --git a/jackson-modules/jackson/src/main/java/com/ossez/jackson/inheritance/TypeInfoStructure.java b/libraries-jackson/jackson/src/main/java/com/ossez/jackson/inheritance/TypeInfoStructure.java similarity index 100% rename from jackson-modules/jackson/src/main/java/com/ossez/jackson/inheritance/TypeInfoStructure.java rename to libraries-jackson/jackson/src/main/java/com/ossez/jackson/inheritance/TypeInfoStructure.java diff --git a/jackson-modules/jackson/src/main/java/com/ossez/jackson/jacksonvsgson/ActorJackson.java b/libraries-jackson/jackson/src/main/java/com/ossez/jackson/jacksonvsgson/ActorJackson.java similarity index 100% rename from jackson-modules/jackson/src/main/java/com/ossez/jackson/jacksonvsgson/ActorJackson.java rename to libraries-jackson/jackson/src/main/java/com/ossez/jackson/jacksonvsgson/ActorJackson.java diff --git a/jackson-modules/jackson/src/main/java/com/ossez/jackson/jacksonvsgson/ActorJacksonSerializer.java b/libraries-jackson/jackson/src/main/java/com/ossez/jackson/jacksonvsgson/ActorJacksonSerializer.java similarity index 100% rename from jackson-modules/jackson/src/main/java/com/ossez/jackson/jacksonvsgson/ActorJacksonSerializer.java rename to libraries-jackson/jackson/src/main/java/com/ossez/jackson/jacksonvsgson/ActorJacksonSerializer.java diff --git a/jackson-modules/jackson/src/main/java/com/ossez/jackson/jacksonvsgson/Movie.java b/libraries-jackson/jackson/src/main/java/com/ossez/jackson/jacksonvsgson/Movie.java similarity index 100% rename from jackson-modules/jackson/src/main/java/com/ossez/jackson/jacksonvsgson/Movie.java rename to libraries-jackson/jackson/src/main/java/com/ossez/jackson/jacksonvsgson/Movie.java diff --git a/jackson-modules/jackson/src/main/java/com/ossez/jackson/jacksonvsgson/MovieWithNullValue.java b/libraries-jackson/jackson/src/main/java/com/ossez/jackson/jacksonvsgson/MovieWithNullValue.java similarity index 100% rename from jackson-modules/jackson/src/main/java/com/ossez/jackson/jacksonvsgson/MovieWithNullValue.java rename to libraries-jackson/jackson/src/main/java/com/ossez/jackson/jacksonvsgson/MovieWithNullValue.java diff --git a/jackson-modules/jackson/src/main/java/com/ossez/jackson/jsonnode/GetAllKeysFromJSON.java b/libraries-jackson/jackson/src/main/java/com/ossez/jackson/jsonnode/GetAllKeysFromJSON.java similarity index 100% rename from jackson-modules/jackson/src/main/java/com/ossez/jackson/jsonnode/GetAllKeysFromJSON.java rename to libraries-jackson/jackson/src/main/java/com/ossez/jackson/jsonnode/GetAllKeysFromJSON.java diff --git a/jackson-modules/jackson/src/main/java/com/ossez/jackson/node/JsonNodeIterator.java b/libraries-jackson/jackson/src/main/java/com/ossez/jackson/node/JsonNodeIterator.java similarity index 100% rename from jackson-modules/jackson/src/main/java/com/ossez/jackson/node/JsonNodeIterator.java rename to libraries-jackson/jackson/src/main/java/com/ossez/jackson/node/JsonNodeIterator.java diff --git a/jackson-modules/jackson/src/main/java/com/ossez/jackson/optionalwithjackson/Book.java b/libraries-jackson/jackson/src/main/java/com/ossez/jackson/optionalwithjackson/Book.java similarity index 100% rename from jackson-modules/jackson/src/main/java/com/ossez/jackson/optionalwithjackson/Book.java rename to libraries-jackson/jackson/src/main/java/com/ossez/jackson/optionalwithjackson/Book.java diff --git a/jackson-modules/jackson/src/main/resources/example1.json b/libraries-jackson/jackson/src/main/resources/example1.json similarity index 100% rename from jackson-modules/jackson/src/main/resources/example1.json rename to libraries-jackson/jackson/src/main/resources/example1.json diff --git a/jackson-modules/jackson/src/main/resources/example2.json b/libraries-jackson/jackson/src/main/resources/example2.json similarity index 100% rename from jackson-modules/jackson/src/main/resources/example2.json rename to libraries-jackson/jackson/src/main/resources/example2.json diff --git a/jackson-modules/jackson/src/main/resources/logback.xml b/libraries-jackson/jackson/src/main/resources/logback.xml similarity index 100% rename from jackson-modules/jackson/src/main/resources/logback.xml rename to libraries-jackson/jackson/src/main/resources/logback.xml diff --git a/jackson-modules/jackson/src/test/java/com/ossez/jackson/defaultvalues/DefaultValuesUnitTest.java b/libraries-jackson/jackson/src/test/java/com/ossez/jackson/defaultvalues/DefaultValuesUnitTest.java similarity index 100% rename from jackson-modules/jackson/src/test/java/com/ossez/jackson/defaultvalues/DefaultValuesUnitTest.java rename to libraries-jackson/jackson/src/test/java/com/ossez/jackson/defaultvalues/DefaultValuesUnitTest.java diff --git a/jackson-modules/jackson/src/test/java/com/ossez/jackson/deserialization/jsongeneric/GenericTypeDeserializerUnitTest.java b/libraries-jackson/jackson/src/test/java/com/ossez/jackson/deserialization/jsongeneric/GenericTypeDeserializerUnitTest.java similarity index 100% rename from jackson-modules/jackson/src/test/java/com/ossez/jackson/deserialization/jsongeneric/GenericTypeDeserializerUnitTest.java rename to libraries-jackson/jackson/src/test/java/com/ossez/jackson/deserialization/jsongeneric/GenericTypeDeserializerUnitTest.java diff --git a/jackson-modules/jackson/src/test/java/com/ossez/jackson/dtos/Address.java b/libraries-jackson/jackson/src/test/java/com/ossez/jackson/dtos/Address.java similarity index 100% rename from jackson-modules/jackson/src/test/java/com/ossez/jackson/dtos/Address.java rename to libraries-jackson/jackson/src/test/java/com/ossez/jackson/dtos/Address.java diff --git a/jackson-modules/jackson/src/test/java/com/ossez/jackson/dtos/MyDto.java b/libraries-jackson/jackson/src/test/java/com/ossez/jackson/dtos/MyDto.java similarity index 100% rename from jackson-modules/jackson/src/test/java/com/ossez/jackson/dtos/MyDto.java rename to libraries-jackson/jackson/src/test/java/com/ossez/jackson/dtos/MyDto.java diff --git a/jackson-modules/jackson/src/test/java/com/ossez/jackson/dtos/Person.java b/libraries-jackson/jackson/src/test/java/com/ossez/jackson/dtos/Person.java similarity index 100% rename from jackson-modules/jackson/src/test/java/com/ossez/jackson/dtos/Person.java rename to libraries-jackson/jackson/src/test/java/com/ossez/jackson/dtos/Person.java diff --git a/jackson-modules/jackson/src/test/java/com/ossez/jackson/dtos/User.java b/libraries-jackson/jackson/src/test/java/com/ossez/jackson/dtos/User.java similarity index 100% rename from jackson-modules/jackson/src/test/java/com/ossez/jackson/dtos/User.java rename to libraries-jackson/jackson/src/test/java/com/ossez/jackson/dtos/User.java diff --git a/jackson-modules/jackson/src/test/java/com/ossez/jackson/inheritance/IgnoranceUnitTest.java b/libraries-jackson/jackson/src/test/java/com/ossez/jackson/inheritance/IgnoranceUnitTest.java similarity index 100% rename from jackson-modules/jackson/src/test/java/com/ossez/jackson/inheritance/IgnoranceUnitTest.java rename to libraries-jackson/jackson/src/test/java/com/ossez/jackson/inheritance/IgnoranceUnitTest.java diff --git a/jackson-modules/jackson/src/test/java/com/ossez/jackson/inheritance/ItemIdRemovedFromUserUnitTest.java b/libraries-jackson/jackson/src/test/java/com/ossez/jackson/inheritance/ItemIdRemovedFromUserUnitTest.java similarity index 100% rename from jackson-modules/jackson/src/test/java/com/ossez/jackson/inheritance/ItemIdRemovedFromUserUnitTest.java rename to libraries-jackson/jackson/src/test/java/com/ossez/jackson/inheritance/ItemIdRemovedFromUserUnitTest.java diff --git a/jackson-modules/jackson/src/test/java/com/ossez/jackson/inheritance/SubTypeHandlingUnitTest.java b/libraries-jackson/jackson/src/test/java/com/ossez/jackson/inheritance/SubTypeHandlingUnitTest.java similarity index 100% rename from jackson-modules/jackson/src/test/java/com/ossez/jackson/inheritance/SubTypeHandlingUnitTest.java rename to libraries-jackson/jackson/src/test/java/com/ossez/jackson/inheritance/SubTypeHandlingUnitTest.java diff --git a/jackson-modules/jackson/src/test/java/com/ossez/jackson/inheritance/TypeInfoInclusionUnitTest.java b/libraries-jackson/jackson/src/test/java/com/ossez/jackson/inheritance/TypeInfoInclusionUnitTest.java similarity index 100% rename from jackson-modules/jackson/src/test/java/com/ossez/jackson/inheritance/TypeInfoInclusionUnitTest.java rename to libraries-jackson/jackson/src/test/java/com/ossez/jackson/inheritance/TypeInfoInclusionUnitTest.java diff --git a/jackson-modules/jackson/src/test/java/com/ossez/jackson/jacksonvsgson/JacksonDeserializeUnitTest.java b/libraries-jackson/jackson/src/test/java/com/ossez/jackson/jacksonvsgson/JacksonDeserializeUnitTest.java similarity index 100% rename from jackson-modules/jackson/src/test/java/com/ossez/jackson/jacksonvsgson/JacksonDeserializeUnitTest.java rename to libraries-jackson/jackson/src/test/java/com/ossez/jackson/jacksonvsgson/JacksonDeserializeUnitTest.java diff --git a/jackson-modules/jackson/src/test/java/com/ossez/jackson/jacksonvsgson/JacksonSerializeUnitTest.java b/libraries-jackson/jackson/src/test/java/com/ossez/jackson/jacksonvsgson/JacksonSerializeUnitTest.java similarity index 100% rename from jackson-modules/jackson/src/test/java/com/ossez/jackson/jacksonvsgson/JacksonSerializeUnitTest.java rename to libraries-jackson/jackson/src/test/java/com/ossez/jackson/jacksonvsgson/JacksonSerializeUnitTest.java diff --git a/jackson-modules/jackson/src/test/java/com/ossez/jackson/jsoncompare/JsonCompareUnitTest.java b/libraries-jackson/jackson/src/test/java/com/ossez/jackson/jsoncompare/JsonCompareUnitTest.java similarity index 100% rename from jackson-modules/jackson/src/test/java/com/ossez/jackson/jsoncompare/JsonCompareUnitTest.java rename to libraries-jackson/jackson/src/test/java/com/ossez/jackson/jsoncompare/JsonCompareUnitTest.java diff --git a/jackson-modules/jackson/src/test/java/com/ossez/jackson/node/ExampleStructure.java b/libraries-jackson/jackson/src/test/java/com/ossez/jackson/node/ExampleStructure.java similarity index 100% rename from jackson-modules/jackson/src/test/java/com/ossez/jackson/node/ExampleStructure.java rename to libraries-jackson/jackson/src/test/java/com/ossez/jackson/node/ExampleStructure.java diff --git a/jackson-modules/jackson/src/test/java/com/ossez/jackson/node/JsonNodeIteratorUnitTest.java b/libraries-jackson/jackson/src/test/java/com/ossez/jackson/node/JsonNodeIteratorUnitTest.java similarity index 100% rename from jackson-modules/jackson/src/test/java/com/ossez/jackson/node/JsonNodeIteratorUnitTest.java rename to libraries-jackson/jackson/src/test/java/com/ossez/jackson/node/JsonNodeIteratorUnitTest.java diff --git a/jackson-modules/jackson/src/test/java/com/ossez/jackson/node/NodeBean.java b/libraries-jackson/jackson/src/test/java/com/ossez/jackson/node/NodeBean.java similarity index 100% rename from jackson-modules/jackson/src/test/java/com/ossez/jackson/node/NodeBean.java rename to libraries-jackson/jackson/src/test/java/com/ossez/jackson/node/NodeBean.java diff --git a/jackson-modules/jackson/src/test/java/com/ossez/jackson/node/NodeOperationUnitTest.java b/libraries-jackson/jackson/src/test/java/com/ossez/jackson/node/NodeOperationUnitTest.java similarity index 100% rename from jackson-modules/jackson/src/test/java/com/ossez/jackson/node/NodeOperationUnitTest.java rename to libraries-jackson/jackson/src/test/java/com/ossez/jackson/node/NodeOperationUnitTest.java diff --git a/jackson-modules/jackson/src/test/java/com/ossez/jackson/optionalwithjackson/OptionalTypeUnitTest.java b/libraries-jackson/jackson/src/test/java/com/ossez/jackson/optionalwithjackson/OptionalTypeUnitTest.java similarity index 100% rename from jackson-modules/jackson/src/test/java/com/ossez/jackson/optionalwithjackson/OptionalTypeUnitTest.java rename to libraries-jackson/jackson/src/test/java/com/ossez/jackson/optionalwithjackson/OptionalTypeUnitTest.java diff --git a/jackson-modules/jackson/src/test/java/com/ossez/jackson/sandbox/JacksonPrettyPrintUnitTest.java b/libraries-jackson/jackson/src/test/java/com/ossez/jackson/sandbox/JacksonPrettyPrintUnitTest.java similarity index 100% rename from jackson-modules/jackson/src/test/java/com/ossez/jackson/sandbox/JacksonPrettyPrintUnitTest.java rename to libraries-jackson/jackson/src/test/java/com/ossez/jackson/sandbox/JacksonPrettyPrintUnitTest.java diff --git a/jackson-modules/jackson/src/test/java/com/ossez/jackson/sandbox/SandboxUnitTest.java b/libraries-jackson/jackson/src/test/java/com/ossez/jackson/sandbox/SandboxUnitTest.java similarity index 100% rename from jackson-modules/jackson/src/test/java/com/ossez/jackson/sandbox/SandboxUnitTest.java rename to libraries-jackson/jackson/src/test/java/com/ossez/jackson/sandbox/SandboxUnitTest.java diff --git a/jackson-modules/jackson/src/test/java/com/ossez/jackson/sandbox/TestElement.java b/libraries-jackson/jackson/src/test/java/com/ossez/jackson/sandbox/TestElement.java similarity index 100% rename from jackson-modules/jackson/src/test/java/com/ossez/jackson/sandbox/TestElement.java rename to libraries-jackson/jackson/src/test/java/com/ossez/jackson/sandbox/TestElement.java diff --git a/jackson-modules/jackson/src/test/java/com/ossez/jackson/test/UnitTestSuite.java b/libraries-jackson/jackson/src/test/java/com/ossez/jackson/test/UnitTestSuite.java similarity index 100% rename from jackson-modules/jackson/src/test/java/com/ossez/jackson/test/UnitTestSuite.java rename to libraries-jackson/jackson/src/test/java/com/ossez/jackson/test/UnitTestSuite.java diff --git a/jackson-modules/jackson/src/test/java/com/ossez/jackson/try1/IEntity.java b/libraries-jackson/jackson/src/test/java/com/ossez/jackson/try1/IEntity.java similarity index 100% rename from jackson-modules/jackson/src/test/java/com/ossez/jackson/try1/IEntity.java rename to libraries-jackson/jackson/src/test/java/com/ossez/jackson/try1/IEntity.java diff --git a/jackson-modules/jackson/src/test/java/com/ossez/jackson/try1/RestLoaderRequest.java b/libraries-jackson/jackson/src/test/java/com/ossez/jackson/try1/RestLoaderRequest.java similarity index 100% rename from jackson-modules/jackson/src/test/java/com/ossez/jackson/try1/RestLoaderRequest.java rename to libraries-jackson/jackson/src/test/java/com/ossez/jackson/try1/RestLoaderRequest.java diff --git a/jackson-modules/jackson/src/test/java/com/ossez/jackson/try1/RestLoaderRequestDeserializer.java b/libraries-jackson/jackson/src/test/java/com/ossez/jackson/try1/RestLoaderRequestDeserializer.java similarity index 100% rename from jackson-modules/jackson/src/test/java/com/ossez/jackson/try1/RestLoaderRequestDeserializer.java rename to libraries-jackson/jackson/src/test/java/com/ossez/jackson/try1/RestLoaderRequestDeserializer.java diff --git a/jackson-modules/jackson/src/test/resources/author-jsonpropertyorder-schema.json b/libraries-jackson/jackson/src/test/resources/author-jsonpropertyorder-schema.json similarity index 100% rename from jackson-modules/jackson/src/test/resources/author-jsonpropertyorder-schema.json rename to libraries-jackson/jackson/src/test/resources/author-jsonpropertyorder-schema.json diff --git a/jackson-modules/jackson/src/test/resources/node_example-1.json b/libraries-jackson/jackson/src/test/resources/node_example-1.json similarity index 100% rename from jackson-modules/jackson/src/test/resources/node_example-1.json rename to libraries-jackson/jackson/src/test/resources/node_example-1.json diff --git a/jackson-modules/jackson/src/test/resources/node_example.json b/libraries-jackson/jackson/src/test/resources/node_example.json similarity index 100% rename from jackson-modules/jackson/src/test/resources/node_example.json rename to libraries-jackson/jackson/src/test/resources/node_example.json diff --git a/jackson-modules/pom.xml b/libraries-jackson/pom.xml similarity index 97% rename from jackson-modules/pom.xml rename to libraries-jackson/pom.xml index c6da0ccb7c..2c02e050bd 100644 --- a/jackson-modules/pom.xml +++ b/libraries-jackson/pom.xml @@ -3,7 +3,7 @@ xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - jackson-modules + libraries-jackson jackson-modules pom diff --git a/pom.xml b/pom.xml index 6c32a709db..c0ee250fd5 100644 --- a/pom.xml +++ b/pom.xml @@ -43,7 +43,7 @@ core-java-modules image-compressing image-processing - jackson-modules + libraries-jackson parent-boot-2