public final class JsonSerializerProviders extends Object
JsonSerializerProvider loaded from the classpath.| Modifier and Type | Method and Description |
|---|---|
static JsonSerializer |
createInstance()
Creates an instance of
JsonSerializer using the first JsonSerializerProvider found in the
classpath. |
static JsonSerializer |
createInstance(boolean useDefaultIfAbsent)
Creates an instance of
JsonSerializer using the first JsonSerializerProvider found in the
classpath. |
public static JsonSerializer createInstance()
JsonSerializer using the first JsonSerializerProvider found in the
classpath.JsonSerializer.IllegalStateException - if a JsonSerializerProvider is not found in the classpath.public static JsonSerializer createInstance(boolean useDefaultIfAbsent)
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.useDefaultIfAbsent - If no provider is found in classpath, a default provider will be used.
if useDefaultIfAbsent is set to true.JsonSerializer.IllegalStateException - if a JsonSerializerProvider is not found in the classpath and
useDefaultIfAbsent is set to false.Copyright © 2021 Microsoft Corporation. All rights reserved.