Json系列之五 揭开JsonConfig的神秘面纱 json to java
来源:互联网 发布:sd卡数据删除不了 编辑:程序博客网 时间:2024/05/21 15:46
//json to java用到的//很重要,很常用//jsonConfig.setClassMap(classMap);//jsonConfig.setCollectionType(collectionType);//jsonConfig.setArrayMode(arrayMode);//没用到//jsonConfig.setEnclosedType(enclosedType);//是否废弃掉""的json转换成java//jsonConfig.setHandleJettisonEmptyElement(handleJettisonEmptyElement);//jsonConfig.setJavaIdentifierTransformer(javaIdentifierTransformer);//jsonConfig.setJavaPropertyFilter(javaPropertyFilter);//jsonConfig.setJavaPropertyNameProcessorMatcher(propertyNameProcessorMatcher);//jsonConfig.setNewBeanInstanceStrategy(newBeanInstanceStrategy);//jsonConfig.setPropertyExclusionClassMatcher(propertyExclusionClassMatcher);//被代替setJavaPropertyNameProcessorMatcher//jsonConfig.setPropertyNameProcessorMatcher(propertyNameProcessorMatcher);//jsonConfig.setPropertySetStrategy(propertySetStrategy);//设置根的class//jsonConfig.setRootClass(rootClass);//设置JavaIdentifierTransformationInMapKeys是否忽略//jsonConfig.setSkipJavaIdentifierTransformationInMapKeys(skipJavaIdentifierTransformationInMapKeys); //可以对class中的单个属性名字改变// jsonConfig.registerJavaPropertyNameProcessor(Person.class, new PropertyNameProcessor() {////@Override//public String processPropertyName(Class beanClass, String name) {//System.out.println("---name" + name);//if(name.equals("age")){//return "99";//}//return name;//}//});//jsonConfig.setNewBeanInstanceStrategy(newBeanInstanceStrategy);/** * Activate/Deactivate handling this jettison convention when converting to Java.<br> * Jettison * states the following JSON {'media':{'title':'hello'}} can be set as a single element JSONArray * (media is the array).<br> * [JSON -> Java] *///jsonConfig.setHandleJettisonSingleElementArray(handleJettisonSingleElementArray);
0 0
- Json系列之五 揭开JsonConfig的神秘面纱 json to java
- Json系列之四 揭开JsonConfig的神秘面纱 java to json
- Json系列之六 揭开JsonConfig的神秘面纱 总结篇
- android Json解析——揭开json解析的神秘面纱
- 揭开Java的神秘面纱--之基础篇
- Java编程之揭开Socket编程的神秘面纱
- 揭开 Java 安全标准的神秘面纱
- 揭开J2EE集群的神秘面纱(五)
- 揭开J2EE集群的神秘面纱(五)
- 揭开J2EE集群的神秘面纱(五)
- 系统架构--揭开J2EE集群的神秘面纱(五)
- 揭开移动 APM 的五大神秘面纱
- 揭开木马的神秘面纱
- 揭开Expect的神秘面纱
- 揭开IRC的神秘面纱
- 揭开Expect的神秘面纱
- 揭开木马的神秘面纱
- 揭开点穴的神秘面纱
- POJ 2586 Y2K Accounting Bug
- java 获取字体宽度
- struct ifreq 结构体
- 区间内素数的个数
- PHP +fopen 显示图片
- Json系列之五 揭开JsonConfig的神秘面纱 json to java
- Maven依赖
- C# 生成语音文件
- mysql安装和使用
- JAVA知识点总结(八)calendar类及Math-random类
- Android4.4 wpa_supplicant深入分析之初识wpa_supplicant
- 多线程开发——线程安全
- IOS 编写真机和模拟器通用的framework(静态库)
- 欢迎使用CSDN-markdown编辑器