All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.wujiuye.hotkit.json.JsonParser Maven / Gradle / Ivy

Go to download

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> typeReference);

     Map fromJsonMap(InputStream jsonIn, TypeReference> typeReference);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy