com.alibaba.dubbo.common.json
Interface JSONConverter

All Known Implementing Classes:
GenericJSONConverter

Deprecated.

@Deprecated
public interface JSONConverter

JSON converter.

Author:
qianlei

Method Summary
 Object readValue(Class<?> type, Object jv)
          Deprecated. convert json value to target class.
 void writeValue(Object obj, JSONWriter builder, boolean writeClass)
          Deprecated. write object.
 

Method Detail

writeValue

void writeValue(Object obj,
                JSONWriter builder,
                boolean writeClass)
                throws IOException
Deprecated. 
write object.

Parameters:
obj - obj.
builder - builder.
Throws:
IOException

readValue

Object readValue(Class<?> type,
                 Object jv)
                 throws IOException
Deprecated. 
convert json value to target class.

Parameters:
type - target type.
jv - json value.
Returns:
target object.
Throws:
IOException.
IOException


Copyright © 2012–2017 Alibaba. All rights reserved.