public class SimpleJSONContext extends Object implements JSONContext
| Constructor and Description |
|---|
SimpleJSONContext(JSON contextJson,
JSONFactory factory)
构造
|
| Modifier and Type | Method and Description |
|---|---|
JSON |
getContextJson()
获取当前JSON对象
此对象为在Mapper时预定义的对象,用于指定序列化的JSON类型 未指定返回 null |
JSONFactory |
getFactory()
获取JSON工厂
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconfig, getOrCreateArray, getOrCreateObj, getOrCreatePrimitivepublic SimpleJSONContext(JSON contextJson, JSONFactory factory)
contextJson - JSON对象factory - 配置项public JSON getContextJson()
JSONContextnullgetContextJson in interface JSONContextpublic JSONFactory getFactory()
JSONContextgetFactory in interface JSONContextCopyright © 2025. All rights reserved.