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

cn.hippo4j.common.api.JsonFacade Maven / Gradle / Ivy

There is a newer version: 1.5.0
Show newest version
package cn.hippo4j.common.api;

import java.util.List;

/**
 * Json facade.
 *
 * @author chen.ma
 * @date 2021/12/13 20:01
 */
public interface JsonFacade {

    /**
     * To JSON string.
     *
     * @param object
     * @return
     */
    String toJSONString(Object object);

    /**
     * Parse object.
     *
     * @param text
     * @param clazz
     * @param 
     * @return
     */
     T parseObject(String text, Class clazz);

    /**
     * Parse array.
     *
     * @param text
     * @param clazz
     * @param 
     * @return
     */
     List parseArray(String text, Class clazz);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy