com.atlassian.confluence.json.jsonator
Class GsonJsonator
java.lang.Object
com.atlassian.confluence.json.jsonator.GsonJsonator
- All Implemented Interfaces:
- Jsonator<Gsonable>
public class GsonJsonator
- extends Object
- implements Jsonator<Gsonable>
A Jsonator implementation that uses Gson under the covers to serialize an object to JSON.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GsonJsonator
public GsonJsonator()
convert
public Json convert(Gsonable object)
- Description copied from interface:
Jsonator
- Creates a
Json
representation of a given object
- Specified by:
convert
in interface Jsonator<Gsonable>
- Parameters:
object
- the object to be serialized
- Returns:
- Json JSON representation of the given object
Copyright © 2003-2013 Atlassian. All Rights Reserved.