public interface JsonGenerator.Converter
Handles converting a given type.
| Type Params | Return Type | Name and description |
|---|---|---|
public Object |
convert(Object value, String key)Converts a given object. | |
public boolean |
handles(Class<?> type)Returns true if this converter can handle conversions of the given type. |
Converts a given object.
value - the object to convertkey - the key name for the value, may be null
Returns true if this converter can handle conversions of the given type.
type - the type of the object to converttrue if this converter can successfully convert values of the given type, else false
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/groovy/json/JsonGenerator.Converter.html