Skip to content

Commit a7eebf1

Browse files
committed
JSONMapper parseMapper version 0.6.0
1 parent b2af8f2 commit a7eebf1

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

admin4j-json/src/main/java/com/admin4j/json/JSONUtil.java

+16
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package com.admin4j.json;
22

3+
import com.admin4j.json.mapper.JSONMapper;
4+
35
import java.io.InputStream;
46
import java.nio.charset.Charset;
57
import java.nio.charset.StandardCharsets;
@@ -79,6 +81,20 @@ public static Map<String, Object> parseMap(InputStream is) {
7981
return JSON_CONVERTOR.parseMap(is);
8082
}
8183

84+
/**
85+
* 解析/发序列化成JSONMapper
86+
*/
87+
public static JSONMapper parseMapper(String input) {
88+
return JSON_CONVERTOR.parseMapper(input);
89+
}
90+
91+
/**
92+
* 解析/发序列化成JSONMapper
93+
*/
94+
public static JSONMapper parseMapper(InputStream is) {
95+
return JSON_CONVERTOR.parseMapper(is);
96+
}
97+
8298
/**
8399
* 解析/发序列化成List
84100
*/

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
</scm>
3333

3434
<properties>
35-
<revision>0.5.2</revision>
35+
<revision>0.6.0</revision>
3636
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
3737
</properties>
3838

0 commit comments

Comments
 (0)