- java.lang.Object
-
- io.github.mmm.marshall.json.JsonFormatProvider
-
- All Implemented Interfaces:
StructuredFormatProvider
public class JsonFormatProvider extends Object implements StructuredFormatProvider
Implementation ofStructuredFormatProvider
for JSON-P.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description JsonFormatProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StructuredFormat
create()
StructuredFormat
create(MarshallingConfig config)
String
getId()
-
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getId
in interfaceStructuredFormatProvider
- Returns:
- the
ID
of theStructuredFormat
toStructuredFormatProvider.create()
.
-
create
public StructuredFormat create()
- Specified by:
create
in interfaceStructuredFormatProvider
- Returns:
- a new
StructuredFormat
forthis
format using default configuration.
-
create
public StructuredFormat create(MarshallingConfig config)
- Specified by:
create
in interfaceStructuredFormatProvider
- Parameters:
config
- theMarshallingConfig
to customize the format.- Returns:
- a new
StructuredFormat
forthis
format using the givenconfig
.
-
-