public interface JsonFactory
Modifier and Type | Method and Description |
---|---|
JsonCodec |
codec() |
static JsonFactory |
load()
Load the JSON factory with the
ServiceLoader
An attempt is made to load a factory using the service loader META-INF/services JsonFactory .
Factories are sorted
If not factory is resolved (which is usually the default case), JacksonFactory.INSTANCE is used.
|
default int |
order()
The order of the factory.
|
static JsonFactory load()
Load the JSON factory with the ServiceLoader
META-INF/services
JsonFactory
.JacksonFactory.INSTANCE
is used. When the default Jackson codec is used and jackson-databind
is available then a codec using it
will be used otherwise the codec will only use jackson-core
and provide best effort mapping.
default int order()
JsonCodec codec()
Copyright © 2022 Eclipse. All rights reserved.