com.wujiuye.hotkit.json.JsonParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hotkit-json Show documentation
Show all versions of hotkit-json Show documentation
hotkits项目集合中的一员,JSON适配器组件,让切换JSON解析框架只需要切换依赖包即可。
The newest version!
package com.wujiuye.hotkit.json;
import java.io.InputStream;
import java.lang.reflect.Type;
import java.util.List;
import java.util.Map;
/**
* @author wujiuye 2020/04/26
*/
public interface JsonParser {
String toJsonString(T obj, SerializeConfig config);
T fromJson(String jsonStr, Class tClass);
T fromJson(InputStream jsonIn, Class tClass);
T fromJson(String jsonStr, Type type);
T fromJson(InputStream jsonIn, Type type);
List fromJsonArray(String jsonStr, TypeReference> typeReference);
List fromJsonArray(InputStream jsonIn, TypeReference> typeReference);
Map fromJsonMap(String jsonStr, TypeReference
© 2015 - 2024 Weber Informatics LLC | Privacy Policy