File tree Expand file tree Collapse file tree
test/java/com/baeldung/jsonb Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99- [ Introduction to JsonPath] ( http://www.baeldung.com/guide-to-jayway-jsonpath )
1010- [ Introduction to JSON-Java (org.json)] ( http://www.baeldung.com/java-org-json )
1111- [ Overview of JSON Pointer] ( https://www.baeldung.com/json-pointer )
12+ - [ Introduction to the JSON Binding API (JSR 367) in Java] ( http://www.baeldung.com/java-json-binding-api )
Original file line number Diff line number Diff line change 3333 <artifactId >json</artifactId >
3434 <version >20171018</version >
3535 </dependency >
36-
36+ <dependency >
37+ <groupId >javax.json.bind</groupId >
38+ <artifactId >javax.json.bind-api</artifactId >
39+ <version >${jsonb-api.version} </version >
40+ </dependency >
3741 <dependency >
3842 <groupId >junit</groupId >
3943 <artifactId >junit</artifactId >
4650 <artifactId >javax.json</artifactId >
4751 <version >1.1.2</version >
4852 </dependency >
49-
53+ <dependency >
54+ <groupId >org.eclipse</groupId >
55+ <artifactId >yasson</artifactId >
56+ <version >${yasson.version} </version >
57+ </dependency >
58+ <!-- utils -->
59+ <dependency >
60+ <groupId >org.apache.commons</groupId >
61+ <artifactId >commons-collections4</artifactId >
62+ <version >${commons-collections4.version} </version >
63+ <scope >test</scope >
64+ </dependency >
5065 </dependencies >
5166
5267 <properties >
5368 <everit .json.schema.version>1.4.1</everit .json.schema.version>
5469 <fastjson .version>1.2.21</fastjson .version>
70+ <jsonb-api .version>1.0</jsonb-api .version>
71+ <commons-collections4 .version>4.1</commons-collections4 .version>
72+ <yasson .version>1.0.1</yasson .version>
5573 </properties >
5674
5775</project >
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1818import org .junit .Test ;
1919
2020import com .baeldung .adapter .PersonAdapter ;
21+ import com .baeldung .jsonb .Person ;
2122
22- public class JsonbTest {
23+ public class JsonbUnitTest {
2324
2425 @ Test
2526 public void givenPersonList_whenSerializeWithJsonb_thenGetPersonJsonArray () {
Load diff This file was deleted.
Load diff This file was deleted.
Load diff This file was deleted.
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments