JsonSerializerProviders Class
- java.
lang. Object - com.
azure. core. util. serializer. JsonSerializerProviders
- com.
public final class JsonSerializerProviders
This class is a proxy for using a JsonSerializerProvider loaded from the classpath.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Json |
createInstance()
Creates an instance of JsonSerializer using the first JsonSerializerProvider found in the classpath. |
|
static
Json |
createInstance(boolean useDefaultIfAbsent)
Creates an instance of JsonSerializer using the first JsonSerializerProvider found in the classpath. |
Methods inherited from java.lang.Object
Method Details
createInstance
public static JsonSerializer createInstance()
Creates an instance of JsonSerializer using the first JsonSerializerProvider found in the classpath.
Returns:
createInstance
public static JsonSerializer createInstance(boolean useDefaultIfAbsent)
Creates an instance of JsonSerializer using the first JsonSerializerProvider found in the classpath. If no provider is found in classpath, a default provider will be included if useDefaultIfAbsent is set to true.
Parameters:
useDefaultIfAbsent is set to true.
Returns: