Unify jackson package structure

This commit is contained in:
pivovarit 2017-01-01 16:17:41 +01:00
parent 12966e0f08
commit 11fb8debd6
95 changed files with 232 additions and 233 deletions

View File

@ -1,6 +1,6 @@
package com.baeldung.jacksonannotation.deserialization.jacksoninject; package com.baeldung.jackson.deserialization.jacksoninject;
import com.baeldung.jacksonannotation.domain.Item; import com.baeldung.jackson.domain.Item;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.deserialization.jacksoninject; package com.baeldung.jackson.deserialization.jacksoninject;
import com.fasterxml.jackson.annotation.JacksonInject; import com.fasterxml.jackson.annotation.JacksonInject;

View File

@ -1,7 +1,7 @@
package com.baeldung.jacksonannotation.deserialization.jsonanysetter; package com.baeldung.jackson.deserialization.jsonanysetter;
import com.baeldung.jacksonannotation.domain.Author; import com.baeldung.jackson.domain.Author;
import com.baeldung.jacksonannotation.domain.Item; import com.baeldung.jackson.domain.Item;
import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnore;

View File

@ -1,8 +1,8 @@
package com.baeldung.jacksonannotation.deserialization.jsoncreator; package com.baeldung.jackson.deserialization.jsoncreator;
import com.baeldung.jacksonannotation.domain.Item; import com.baeldung.jackson.domain.Person;
import com.baeldung.jacksonannotation.domain.Person; import com.baeldung.jackson.domain.Item;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;

View File

@ -1,7 +1,7 @@
package com.baeldung.jacksonannotation.deserialization.jsondeserialize; package com.baeldung.jackson.deserialization.jsondeserialize;
import com.baeldung.jacksonannotation.domain.Item; import com.baeldung.jackson.domain.Item;
import com.baeldung.jacksonannotation.domain.Person; import com.baeldung.jackson.domain.Person;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.deserialization.jsondeserialize; package com.baeldung.jackson.deserialization.jsondeserialize;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.fasterxml.jackson.databind.annotation.JsonDeserialize;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.deserialization.jsondeserialize; package com.baeldung.jackson.deserialization.jsondeserialize;
import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.DeserializationContext;

View File

@ -1,6 +1,6 @@
package com.baeldung.jacksonannotation.general.jsonproperty; package com.baeldung.jackson.deserialization.jsondeserialize;
import com.baeldung.jacksonannotation.domain.Person; import com.baeldung.jackson.domain.Person;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;

View File

@ -1,7 +1,7 @@
package com.baeldung.jacksonannotation.deserialization.jsonsetter; package com.baeldung.jackson.deserialization.jsonsetter;
import com.baeldung.jacksonannotation.domain.Item; import com.baeldung.jackson.domain.Item;
import com.baeldung.jacksonannotation.domain.Person; import com.baeldung.jackson.domain.Person;
import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.JsonSetter;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.domain; package com.baeldung.jackson.domain;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.domain; package com.baeldung.jackson.domain;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date; import java.util.Date;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.domain; package com.baeldung.jackson.domain;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.domain; package com.baeldung.jackson.domain;
/** /**
* Source code github.com/readlearncode * Source code github.com/readlearncode

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.domain; package com.baeldung.jackson.domain;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.domain; package com.baeldung.jackson.domain;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.domain; package com.baeldung.jackson.domain;
import java.util.UUID; import java.util.UUID;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.domain; package com.baeldung.jackson.domain;
import java.util.UUID; import java.util.UUID;

View File

@ -1,4 +1,4 @@
package org.baeldung.jackson.entities; package com.baeldung.jackson.entities;
import java.text.DateFormat; import java.text.DateFormat;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;

View File

@ -1,4 +1,4 @@
package org.baeldung.jackson.entities; package com.baeldung.jackson.entities;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package org.baeldung.jackson.entities; package com.baeldung.jackson.entities;
import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnore;

View File

@ -1,9 +1,9 @@
package com.baeldung.jacksonannotation.format; package com.baeldung.jackson.format;
import java.util.Date; import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baeldung.jacksonannotation.domain.Person; import com.baeldung.jackson.domain.Person;
import com.fasterxml.jackson.annotation.JsonFormat;
/** /**
* @author Jay Sridhar * @author Jay Sridhar

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.inclusion.jsonautodetect; package com.baeldung.jackson.inclusion.jsonautodetect;
import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility; import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;

View File

@ -1,6 +1,6 @@
package com.baeldung.jacksonannotation.inclusion.jsonignore; package com.baeldung.jackson.inclusion.jsonignore;
import com.baeldung.jacksonannotation.domain.Item; import com.baeldung.jackson.domain.Item;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.inclusion.jsonignore; package com.baeldung.jackson.inclusion.jsonignore;
import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnore;

View File

@ -1,7 +1,7 @@
package com.baeldung.jacksonannotation.inclusion.jsonignoreproperties; package com.baeldung.jackson.inclusion.jsonignoreproperties;
import com.baeldung.jacksonannotation.domain.Author; import com.baeldung.jackson.domain.Author;
import com.baeldung.jacksonannotation.domain.Item; import com.baeldung.jackson.domain.Item;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.inclusion.jsonignoretype; package com.baeldung.jackson.inclusion.jsonignoretype;
import com.fasterxml.jackson.annotation.JsonIgnoreType; import com.fasterxml.jackson.annotation.JsonIgnoreType;

View File

@ -1,7 +1,7 @@
package com.baeldung.jacksonannotation.inclusion.jsoninclude; package com.baeldung.jackson.inclusion.jsoninclude;
import com.baeldung.jacksonannotation.domain.Item; import com.baeldung.jackson.domain.Person;
import com.baeldung.jacksonannotation.domain.Person; import com.baeldung.jackson.domain.Item;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import java.util.ArrayList; import java.util.ArrayList;

View File

@ -1,6 +1,6 @@
package com.baeldung.jacksonannotation.miscellaneous.custom; package com.baeldung.jackson.miscellaneous.custom;
import com.baeldung.jacksonannotation.domain.Author; import com.baeldung.jackson.domain.Author;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.miscellaneous.custom; package com.baeldung.jackson.miscellaneous.custom;
import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.annotation.*;

View File

@ -0,0 +1,62 @@
package com.baeldung.jackson.miscellaneous.custom;
import com.baeldung.jackson.domain.Author;
import com.baeldung.jackson.domain.Person;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
/**
* Source code github.com/readlearncode
*
* @author Alex Theedom www.readlearncode.com
* @version 1.0
*/
public class Item {
private UUID id;
private String title;
private List<Person> authors = new ArrayList<>();
private float price;
public Item(){}
public Item(String title, Author author) {
this.id = UUID.randomUUID();
this.title = title;
this.authors.add(author);
}
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 List<Person> getAuthors() {
return authors;
}
public void setAuthors(List<Person> authors) {
this.authors = authors;
}
public float getPrice() {
return price;
}
public void setPrice(float price) {
this.price = price;
}
}

View File

@ -1,7 +1,7 @@
package com.baeldung.jacksonannotation.miscellaneous.disable; package com.baeldung.jackson.miscellaneous.disable;
import com.baeldung.jacksonannotation.domain.Item; import com.baeldung.jackson.domain.Item;
import com.baeldung.jacksonannotation.domain.Person; import com.baeldung.jackson.domain.Person;
import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonPropertyOrder;

View File

@ -0,0 +1,30 @@
package com.baeldung.jackson.miscellaneous.mixin;
import com.baeldung.jackson.domain.Item;
import com.baeldung.jackson.domain.Person;
import java.util.ArrayList;
import java.util.List;
/**
* Source code github.com/readlearncode
*
* @author Alex Theedom www.readlearncode.com
* @version 1.0
*/
public class Author extends Person {
private List<Item> items = new ArrayList<>();
public Author(String firstName, String lastName) {
super(firstName, lastName);
}
public List<Item> getItems() {
return items;
}
public void setItems(List<Item> items) {
this.items = items;
}
}

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.miscellaneous.mixin; package com.baeldung.jackson.miscellaneous.mixin;
import com.fasterxml.jackson.annotation.JsonIgnoreType; import com.fasterxml.jackson.annotation.JsonIgnoreType;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.polymorphism; package com.baeldung.jackson.polymorphism;
import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeInfo;

View File

@ -1,10 +1,10 @@
package org.baeldung.jackson.serialization; package com.baeldung.jackson.serialization;
import java.io.IOException; import java.io.IOException;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.stream.Collectors; import java.util.stream.Collectors;
import org.baeldung.jackson.entities.ActorJackson; import com.baeldung.jackson.entities.ActorJackson;
import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.SerializerProvider; import com.fasterxml.jackson.databind.SerializerProvider;

View File

@ -1,7 +1,7 @@
package com.baeldung.jacksonannotation.serialization.jsonanygetter; package com.baeldung.jackson.serialization.jsonanygetter;
import com.baeldung.jacksonannotation.domain.Author; import com.baeldung.jackson.domain.Author;
import com.baeldung.jacksonannotation.domain.Item; import com.baeldung.jackson.domain.Item;
import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnore;

View File

@ -1,8 +1,8 @@
package com.baeldung.jacksonannotation.serialization.jsongetter; package com.baeldung.jackson.serialization.jsongetter;
import com.baeldung.jacksonannotation.domain.Item; import com.baeldung.jackson.domain.Item;
import com.baeldung.jacksonannotation.domain.Person; import com.baeldung.jackson.domain.Person;
import com.fasterxml.jackson.annotation.JsonGetter; import com.fasterxml.jackson.annotation.JsonGetter;
import java.util.ArrayList; import java.util.ArrayList;

View File

@ -1,7 +1,7 @@
package com.baeldung.jacksonannotation.serialization.jsonpropertyorder; package com.baeldung.jackson.serialization.jsonpropertyorder;
import com.baeldung.jacksonannotation.domain.Item; import com.baeldung.jackson.domain.Item;
import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import java.util.ArrayList; import java.util.ArrayList;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.serialization.jsonpropertyorder; package com.baeldung.jackson.serialization.jsonpropertyorder;
import java.util.UUID; import java.util.UUID;

View File

@ -1,6 +1,6 @@
package com.baeldung.jacksonannotation.serialization.jsonrawvalue; package com.baeldung.jackson.serialization.jsonrawvalue;
import com.baeldung.jacksonannotation.domain.Person; import com.baeldung.jackson.domain.Person;
import com.fasterxml.jackson.annotation.JsonRawValue; import com.fasterxml.jackson.annotation.JsonRawValue;
/** /**

View File

@ -1,7 +1,7 @@
package com.baeldung.jacksonannotation.serialization.jsonrootname; package com.baeldung.jackson.serialization.jsonrootname;
import com.baeldung.jacksonannotation.domain.Item; import com.baeldung.jackson.domain.Item;
import com.baeldung.jacksonannotation.domain.Person; import com.baeldung.jackson.domain.Person;
import com.fasterxml.jackson.annotation.JsonRootName; import com.fasterxml.jackson.annotation.JsonRootName;
import java.util.ArrayList; import java.util.ArrayList;

View File

@ -1,7 +1,6 @@
package com.baeldung.jacksonannotation.miscellaneous.mixin; package com.baeldung.jackson.serialization.jsonserialize;
import com.baeldung.jacksonannotation.domain.Item; import com.baeldung.jackson.domain.Person;
import com.baeldung.jacksonannotation.domain.Person;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@ -14,17 +13,17 @@ import java.util.List;
*/ */
public class Author extends Person { public class Author extends Person {
private List<Item> items = new ArrayList<>(); List<com.baeldung.jackson.domain.Item> items = new ArrayList<>();
public Author(String firstName, String lastName) { public Author(String firstName, String lastName) {
super(firstName, lastName); super(firstName, lastName);
} }
public List<Item> getItems() { public List<com.baeldung.jackson.domain.Item> getItems() {
return items; return items;
} }
public void setItems(List<Item> items) { public void setItems(List<com.baeldung.jackson.domain.Item> items) {
this.items = items; this.items = items;
} }
} }

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.serialization.jsonserialize; package com.baeldung.jackson.serialization.jsonserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.annotation.JsonSerialize;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.serialization.jsonserialize; package com.baeldung.jackson.serialization.jsonserialize;
import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonProcessingException;

View File

@ -1,6 +1,6 @@
package com.baeldung.jacksonannotation.serialization.jsonserialize; package com.baeldung.jackson.serialization.jsonserialize;
import com.baeldung.jacksonannotation.domain.Person; import com.baeldung.jackson.domain.Person;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;

View File

@ -1,7 +1,7 @@
package com.baeldung.jacksonannotation.serialization.jsonvalue; package com.baeldung.jackson.serialization.jsonvalue;
import com.baeldung.jacksonannotation.domain.Author; import com.baeldung.jackson.domain.Author;
import com.baeldung.jacksonannotation.domain.Item; import com.baeldung.jackson.domain.Item;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
import java.util.List; import java.util.List;

View File

@ -1,62 +0,0 @@
package com.baeldung.jacksonannotation.miscellaneous.custom;
import com.baeldung.jacksonannotation.domain.Author;
import com.baeldung.jacksonannotation.domain.Person;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
/**
* Source code github.com/readlearncode
*
* @author Alex Theedom www.readlearncode.com
* @version 1.0
*/
public class Item {
private UUID id;
private String title;
private List<Person> authors = new ArrayList<>();
private float price;
public Item(){}
public Item(String title, Author author) {
this.id = UUID.randomUUID();
this.title = title;
this.authors.add(author);
}
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 List<Person> getAuthors() {
return authors;
}
public void setAuthors(List<Person> authors) {
this.authors = authors;
}
public float getPrice() {
return price;
}
public void setPrice(float price) {
this.price = price;
}
}

View File

@ -1,30 +0,0 @@
package com.baeldung.jacksonannotation.serialization.jsonserialize;
import com.baeldung.jacksonannotation.domain.Item;
import com.baeldung.jacksonannotation.domain.Person;
import java.util.ArrayList;
import java.util.List;
/**
* Source code github.com/readlearncode
*
* @author Alex Theedom www.readlearncode.com
* @version 1.0
*/
public class Author extends Person {
List<Item> items = new ArrayList<>();
public Author(String firstName, String lastName) {
super(firstName, lastName);
}
public List<Item> getItems() {
return items;
}
public void setItems(List<Item> items) {
this.items = items;
}
}

View File

@ -1,10 +1,10 @@
package org.baeldung.jackson.deserialization; package com.baeldung.jackson.deserialization;
import java.io.IOException; import java.io.IOException;
import java.text.DateFormat; import java.text.DateFormat;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import org.baeldung.jackson.entities.Movie; import com.baeldung.jackson.entities.Movie;
import org.junit.Assert; import org.junit.Assert;
import org.junit.Test; import org.junit.Test;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.deserialization.jacksoninject; package com.baeldung.jackson.deserialization.jacksoninject;
import com.fasterxml.jackson.databind.InjectableValues; import com.fasterxml.jackson.databind.InjectableValues;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.deserialization.jsonanysetter; package com.baeldung.jackson.deserialization.jsonanysetter;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.Test; import org.junit.Test;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.deserialization.jsoncreator; package com.baeldung.jackson.deserialization.jsoncreator;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.Test; import org.junit.Test;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.deserialization.jsondeserialize; package com.baeldung.jackson.deserialization.jsondeserialize;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.Test; import org.junit.Test;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.deserialization.jsonsetter; package com.baeldung.jackson.deserialization.jsonsetter;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.Test; import org.junit.Test;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.format; package com.baeldung.jackson.format;
import java.util.Date; import java.util.Date;

View File

@ -1,7 +1,7 @@
package com.baeldung.jacksonannotation.general.jsonfilter; package com.baeldung.jackson.general.jsonfilter;
import com.baeldung.jacksonannotation.domain.Item; import com.baeldung.jackson.domain.Person;
import com.baeldung.jacksonannotation.domain.Person; import com.baeldung.jackson.domain.Item;
import com.fasterxml.jackson.annotation.JsonFilter; import com.fasterxml.jackson.annotation.JsonFilter;
import java.util.ArrayList; import java.util.ArrayList;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.general.jsonfilter; package com.baeldung.jackson.general.jsonfilter;
import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;

View File

@ -1,7 +1,7 @@
package com.baeldung.jacksonannotation.general.jsonformat; package com.baeldung.jackson.general.jsonformat;
import com.baeldung.jacksonannotation.domain.Author; import com.baeldung.jackson.domain.Author;
import com.baeldung.jacksonannotation.domain.Item; import com.baeldung.jackson.domain.Item;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import java.math.BigDecimal; import java.math.BigDecimal;

View File

@ -1,6 +1,6 @@
package com.baeldung.jacksonannotation.general.jsonformat; package com.baeldung.jackson.general.jsonformat;
import com.baeldung.jacksonannotation.domain.Author; import com.baeldung.jackson.domain.Author;
import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.Test; import org.junit.Test;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.general.jsonidentityinfo; package com.baeldung.jackson.general.jsonidentityinfo;
import com.fasterxml.jackson.annotation.JsonIdentityInfo; import com.fasterxml.jackson.annotation.JsonIdentityInfo;
import com.fasterxml.jackson.annotation.ObjectIdGenerators; import com.fasterxml.jackson.annotation.ObjectIdGenerators;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.general.reference; package com.baeldung.jackson.general.jsonidentityinfo;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.general.jsonidentityinfo; package com.baeldung.jackson.general.jsonidentityinfo;
import com.fasterxml.jackson.annotation.JsonIdentityInfo; import com.fasterxml.jackson.annotation.JsonIdentityInfo;
import com.fasterxml.jackson.annotation.ObjectIdGenerators; import com.fasterxml.jackson.annotation.ObjectIdGenerators;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.general.jsonidentityinfo; package com.baeldung.jackson.general.jsonidentityinfo;
import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.general.reference; package com.baeldung.jackson.general.jsonidentityinfo;
import java.util.UUID; import java.util.UUID;

View File

@ -1,6 +1,6 @@
package com.baeldung.jacksonannotation.general.jsonproperty; package com.baeldung.jackson.general.jsonproperty;
import com.baeldung.jacksonannotation.domain.Person; import com.baeldung.jackson.domain.Person;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.general.jsonproperty; package com.baeldung.jackson.general.jsonproperty;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;

View File

@ -1,6 +1,6 @@
package com.baeldung.jacksonannotation.deserialization.jsondeserialize; package com.baeldung.jackson.general.jsonproperty;
import com.baeldung.jacksonannotation.domain.Person; import com.baeldung.jackson.domain.Person;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.general.jsonproperty; package com.baeldung.jackson.general.jsonproperty;
import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.general.jsonunwrapped; package com.baeldung.jackson.general.jsonunwrapped;
import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonProcessingException;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.general.jsonunwrapped; package com.baeldung.jackson.general.jsonunwrapped;
import com.fasterxml.jackson.annotation.JsonUnwrapped; import com.fasterxml.jackson.annotation.JsonUnwrapped;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.general.jsonview; package com.baeldung.jackson.general.jsonview;
import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.general.jsonview; package com.baeldung.jackson.general.jsonview;
import com.fasterxml.jackson.annotation.JsonView; import com.fasterxml.jackson.annotation.JsonView;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.general.jsonview; package com.baeldung.jackson.general.jsonview;
/** /**
* Source code github.com/readlearncode * Source code github.com/readlearncode

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.general.reference; package com.baeldung.jackson.general.reference;
import com.fasterxml.jackson.annotation.JsonManagedReference; import com.fasterxml.jackson.annotation.JsonManagedReference;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.general.jsonidentityinfo; package com.baeldung.jackson.general.reference;
import java.util.List; import java.util.List;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.general.reference; package com.baeldung.jackson.general.reference;
import com.fasterxml.jackson.annotation.JsonBackReference; import com.fasterxml.jackson.annotation.JsonBackReference;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.general.jsonidentityinfo; package com.baeldung.jackson.general.reference;
import java.util.UUID; import java.util.UUID;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.general.reference; package com.baeldung.jackson.general.reference;
import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.inclusion.jsonautodetect; package com.baeldung.jackson.inclusion.jsonautodetect;
import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.inclusion.jsonignore; package com.baeldung.jackson.inclusion.jsonignore;
import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;

View File

@ -1,6 +1,6 @@
package com.baeldung.jacksonannotation.inclusion.jsonignoreproperties; package com.baeldung.jackson.inclusion.jsonignoreproperties;
import com.baeldung.jacksonannotation.domain.Author; import com.baeldung.jackson.domain.Author;
import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.Test; import org.junit.Test;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.inclusion.jsonignoretype; package com.baeldung.jackson.inclusion.jsonignoretype;
import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.inclusion.jsoninclude; package com.baeldung.jackson.inclusion.jsoninclude;
import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;

View File

@ -1,6 +1,6 @@
package com.baeldung.jacksonannotation.miscellaneous.custom; package com.baeldung.jackson.miscellaneous.custom;
import com.baeldung.jacksonannotation.domain.Author; import com.baeldung.jackson.domain.Author;
import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.Test; import org.junit.Test;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.miscellaneous.disable; package com.baeldung.jackson.miscellaneous.disable;
import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.MapperFeature; import com.fasterxml.jackson.databind.MapperFeature;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.miscellaneous.mixin; package com.baeldung.jackson.miscellaneous.mixin;
import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.polymorphism; package com.baeldung.jackson.polymorphism;
import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;

View File

@ -1,4 +1,4 @@
package org.baeldung.jackson.serialization; package com.baeldung.jackson.serialization;
import java.io.IOException; import java.io.IOException;
import java.text.ParseException; import java.text.ParseException;
@ -6,9 +6,9 @@ import java.text.SimpleDateFormat;
import java.util.Arrays; import java.util.Arrays;
import java.util.TimeZone; import java.util.TimeZone;
import org.baeldung.jackson.entities.ActorJackson; import com.baeldung.jackson.entities.ActorJackson;
import org.baeldung.jackson.entities.Movie; import com.baeldung.jackson.entities.Movie;
import org.baeldung.jackson.entities.MovieWithNullValue; import com.baeldung.jackson.entities.MovieWithNullValue;
import org.junit.Assert; import org.junit.Assert;
import org.junit.Test; import org.junit.Test;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.serialization.jsonanygetter; package com.baeldung.jackson.serialization.jsonanygetter;
import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.serialization.jsongetter; package com.baeldung.jackson.serialization.jsongetter;
import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.serialization.jsonpropertyorder; package com.baeldung.jackson.serialization.jsonpropertyorder;
import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.serialization.jsonrawvalue; package com.baeldung.jackson.serialization.jsonrawvalue;
import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.serialization.jsonrootname; package com.baeldung.jackson.serialization.jsonrootname;
import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.serialization.jsonserialize; package com.baeldung.jackson.serialization.jsonserialize;
import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;

View File

@ -1,4 +1,4 @@
package com.baeldung.jacksonannotation.serialization.jsonvalue; package com.baeldung.jackson.serialization.jsonvalue;
import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;