org.hudsonci.rest.common
Interface JsonCodec

All Known Implementing Classes:
JacksonCodec

public interface JsonCodec

Helper to handle JSON encode/decode.

Since:
2.1.0
Author:
Jason Dillon

Method Summary
<T> T
decode(String value, Class<T> type)
           
 String encode(Object value)
           
 

Method Detail

encode

String encode(Object value)
              throws IOException
Throws:
IOException

decode

<T> T decode(String value,
             Class<T> type)
         throws IOException
Throws:
IOException


Copyright © 2004-2011 Hudson. All Rights Reserved.