com.atlassian.greenhopper.web.rapid
Class GHJSONMarshaller

java.lang.Object
  extended by com.atlassian.greenhopper.web.rapid.GHJSONMarshaller

@Service
public class GHJSONMarshaller
extends java.lang.Object

Provides marshalling of objects Currently we use jackson for the encoding directly, ultimately it would be nice to go through Jersey to ensure we really use the same marshaller as the resources


Constructor Summary
GHJSONMarshaller()
           
 
Method Summary
 java.lang.String marshalToJSON(java.lang.Object object)
           
<T> T
unmarshalJSON(java.lang.String json, java.lang.Class<T> type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GHJSONMarshaller

public GHJSONMarshaller()
Method Detail

marshalToJSON

public java.lang.String marshalToJSON(java.lang.Object object)

unmarshalJSON

public <T> T unmarshalJSON(java.lang.String json,
                           java.lang.Class<T> type)


Copyright © 2007-2012 Atlassian. All Rights Reserved.