Class JsonUtils

java.lang.Object
com.hw.openai.utils.JsonUtils

public class JsonUtils extends Object
Author:
HamaWhite
  • Method Details

    • toJsonStringWithIndent

      public static String toJsonStringWithIndent(Object object, int indent)
    • toJsonStringWithIndent

      public static String toJsonStringWithIndent(Object object)
    • convertFromJsonStr

      public static <T> T convertFromJsonStr(String jsonStr, Class<T> clazz)