json转对象忽略大小写

时间:2025-02-16 12:24:41
import ;
import ;
import ;
 
import ;
 
public class test {
    public static void main(String[] args) {
        String tString = "{\"FuncName\":\"UploadGroupInfo\",\"ParamNum\":\"1\",\"ParamValue\":\"444\"}";
        JSONObject jsonObj1 = (tString);
        JsonConfig config = new JsonConfig();
        (new JavaIdentifierTransformer() {
 
            @Override
            public String transformToJavaIdentifier(String str) {
                char[] chars = ();
                chars[0] = (chars[0]);
                return new String(chars);
            }
 
        });
        ();
        ICPostJsonBeanVO p2 = (ICPostJsonBeanVO) (jsonObj1, config);
        ("json转化为对象:方法名:" + () + ";数量:" + () + "值:" + ());
    }
}