com.atlassian.confluence.json.jsonator
Class GsonJsonator

java.lang.Object
  extended by com.atlassian.confluence.json.jsonator.GsonJsonator
All Implemented Interfaces:
Jsonator<Gsonable>

public class GsonJsonator
extends java.lang.Object
implements Jsonator<Gsonable>

A Jsonator implementation that uses Gson under the covers to serialize an object to JSON.


Constructor Summary
GsonJsonator()
           
 
Method Summary
 Json convert(Gsonable object)
          Creates a Json representation of a given object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GsonJsonator

public GsonJsonator()
Method Detail

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-2014 Atlassian. All Rights Reserved.