public class JsonSchemaWriter extends Object
A writer of the JSON string which writes LSPS objects to JSON format.
This class is not thread-safe!
Constructor and Description |
---|
JsonSchemaWriter(ValueConverterProvider provider,
boolean useExternalRef)
Creates a new JSON writer.
|
Modifier and Type | Method and Description |
---|---|
String |
writeJsonSchema(Type type)
Creates a JSON representation of the LSPS object.
|
public JsonSchemaWriter(ValueConverterProvider provider, boolean useExternalRef)
ValueConverterProvider
affects the output of the writer by the provided converters which produce
the JSON output.provider
- the provider of the value convertersuseExternalRef
- public String writeJsonSchema(Type type)
Creates a JSON representation of the LSPS object.
object
- the object which should be represented as JSON. The object
must be of one of these types: RecordHolder
,
CollectionHolder
, MapHolder
.Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.