org.swat.json.utils.JsonUtil Maven / Gradle / Ivy
/*
* Copyright © 2018 Gainsight. All rights reserved.
*/
package org.swat.json.utils;
import org.swat.core.utils.CoreRtException;
import java.io.InputStream;
import java.util.List;
import java.util.Map;
public interface JsonUtil {
T readObject(InputStream jsonStream, Class clazz) throws CoreRtException;
List readList(InputStream stream, Class clazz) throws CoreRtException;
List readList(String json, Class clazz) throws CoreRtException;
Map readMap(String json, Class keyClass, Class valueClass) throws CoreRtException;
String toJsonString(Object object) throws CoreRtException;
T readObject(String json, Class clazz) throws CoreRtException;
String pretty(Object object) throws CoreRtException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy