Skip to content

Commit d727883

Browse files
committed
JAVA-8370: Split or move json module
1 parent 81ff66c commit d727883

6 files changed

Lines changed: 11 additions & 9 deletions

File tree

json-2/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ This module contains articles about JSON.
88
- [Introduction to Moshi Json](https://www.baeldung.com/java-json-moshi)
99
- [Hypermedia Serialization With JSON-LD](https://www.baeldung.com/json-linked-data)
1010
- [Generate a Java Class From JSON](https://www.baeldung.com/java-generate-class-from-json)
11+
- [A Guide to FastJson](https://www.baeldung.com/fastjson)
12+
- More Articles: [[<-- prev]](/json)

json-2/pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
</parent>
1515

1616
<dependencies>
17+
<dependency>
18+
<groupId>com.alibaba</groupId>
19+
<artifactId>fastjson</artifactId>
20+
<version>${fastjson.version}</version>
21+
</dependency>
1722
<dependency>
1823
<groupId>org.jsonschema2pojo</groupId>
1924
<artifactId>jsonschema2pojo-core</artifactId>
@@ -142,6 +147,7 @@
142147
<properties>
143148
<jsoniter.version>0.9.23</jsoniter.version>
144149
<moshi.version>1.9.2</moshi.version>
150+
<fastjson.version>1.2.21</fastjson.version>
145151
</properties>
146152

147153
</project>

json/src/test/java/fast_json/FastJsonUnitTest.java renamed to json-2/src/test/java/com/baeldung/fastjson/FastJsonUnitTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package fast_json;
1+
package com.baeldung.fastjson;
22

33
import com.alibaba.fastjson.JSON;
44
import com.alibaba.fastjson.JSONArray;

json/src/test/java/fast_json/Person.java renamed to json-2/src/test/java/com/baeldung/fastjson/Person.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package fast_json;
1+
package com.baeldung.fastjson;
22

33
import com.alibaba.fastjson.annotation.JSONField;
44

json/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ This module contains articles about JSON.
44

55
### Relevant Articles:
66
- [Introduction to JSON Schema in Java](https://www.baeldung.com/introduction-to-json-schema-in-java)
7-
- [A Guide to FastJson](https://www.baeldung.com/fastjson)
87
- [Introduction to JSONForms](https://www.baeldung.com/introduction-to-jsonforms)
98
- [Introduction to JsonPath](https://www.baeldung.com/guide-to-jayway-jsonpath)
109
- [Introduction to JSON-Java (org.json)](https://www.baeldung.com/java-org-json)
@@ -14,3 +13,4 @@ This module contains articles about JSON.
1413
- [Iterating Over an Instance of org.json.JSONObject](https://www.baeldung.com/jsonobject-iteration)
1514
- [Escape JSON String in Java](https://www.baeldung.com/java-json-escaping)
1615
- [Reducing JSON Data Size](https://www.baeldung.com/json-reduce-data-size)
16+
- More Articles: [[next -->]](/json-2)

json/pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@
2626
</exclusion>
2727
</exclusions>
2828
</dependency>
29-
<dependency>
30-
<groupId>com.alibaba</groupId>
31-
<artifactId>fastjson</artifactId>
32-
<version>${fastjson.version}</version>
33-
</dependency>
3429
<dependency>
3530
<groupId>org.json</groupId>
3631
<artifactId>json</artifactId>
@@ -72,7 +67,6 @@
7267

7368
<properties>
7469
<everit.json.schema.version>1.4.1</everit.json.schema.version>
75-
<fastjson.version>1.2.21</fastjson.version>
7670
<jsonb-api.version>1.0</jsonb-api.version>
7771
<yasson.version>1.0.1</yasson.version>
7872
<json.version>20171018</json.version>

0 commit comments

Comments
 (0)