public class JsonWriter
extends java.lang.Object
A writer of the JSON string which writes LSPS objects to JSON format.
This class is not thread-safe!
Constructor and Description |
---|
JsonWriter(ValueConverterProvider provider,
boolean useExternalRef)
Creates a new JSON writer.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
writeJson(java.lang.Object object)
Creates a JSON representation of the LSPS object.
|
public JsonWriter(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 java.lang.String writeJson(java.lang.Object object)
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.