public class DefaultJsonator extends Object implements Jsonator<Object>
The process is roughly as follows:
The first step, calling the getter methods, is delegated to a JSONObject, which converts a bean Object into a JSONObject map.
Constructor and Description |
---|
DefaultJsonator(Introspector introspector,
Map<Class<?>,Jsonator<?>> jsonators) |
DefaultJsonator(Map<Class<?>,Jsonator<?>> jsonators)
Creates a jsonator with the
DefaultIntrospector and provided jsonators. |
Modifier and Type | Method and Description |
---|---|
Json |
convert(Object bean)
Creates a
Json representation of a given object |
public DefaultJsonator(Map<Class<?>,Jsonator<?>> jsonators)
DefaultIntrospector
and provided jsonators.
Use DefaultJsonator(Introspector, Map)
to specify your own Introspector.public DefaultJsonator(Introspector introspector, Map<Class<?>,Jsonator<?>> jsonators)
Copyright © 2003–2020 Atlassian. All rights reserved.