public interface VariantJson
The variant is encoded as JSON object with two fields: type
and
value
. Type contains the type string from VariantType
(except VariantType.UNKNOWN
. Value contains the data encoded in the
type of the variant. If the type is null
then the field is set
to null
for when serialized, but when deserialized the value is
ignored.
For the deserialization there are several options. The variant can be encoded
as primitive (including null). So the type will be guessed by the value that
is coming in, which might not always be what you expect. If it is a string,
the type prefix handling of VariantEditor
will be used (e.g.
INT32#1
).
In addition it can be provided as it is serialized (with type
and value
fields.
Modifier and Type | Field and Description |
---|---|
static String |
FIELD_TYPE |
static String |
FIELD_VALUE |
static final String FIELD_TYPE
static final String FIELD_VALUE
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.