JsonValueEncoderService
Converts value representing ManagedObject s to their corresponding JSON representation and back.
API
interface JsonValueEncoderService {
ManagedObject asAdapter(ObjectSpecification valueSpec, JsonRepresentation valueRepr, JsonValueConverter.Context context) (1)
void appendValueAndFormat(ManagedObject valueAdapter, JsonRepresentation repr, JsonValueConverter.Context context) (2)
Object asObject(ManagedObject adapter, JsonValueConverter.Context context) (3)
NullNode appendNullAndFormat(JsonRepresentation repr, boolean suppressExtensions)
void appendFormats(JsonRepresentation repr, String format, String extendedFormat, boolean suppressExtensions)
}
| 1 | asAdapter(ObjectSpecification, JsonRepresentation, JsonValueConverter_Context)
The value recovered from JsonRepresentation as ManagedObject honoring JsonValueConverter.Context , otherwise |
| 2 | appendValueAndFormat(ManagedObject, JsonRepresentation, JsonValueConverter_Context)
Appends given value type representing ManagedObject to given JsonRepresentation honoring JsonValueConverter.Context . |
| 3 | asObject(ManagedObject, JsonValueConverter_Context)
A JsonNode or otherwise natively supported simple type from given ManagedObject , honoring JsonValueConverter.Context . |
Members
asAdapter(ObjectSpecification, JsonRepresentation, JsonValueConverter_Context)
The value recovered from JsonRepresentation as ManagedObject honoring JsonValueConverter.Context , otherwise null .
appendValueAndFormat(ManagedObject, JsonRepresentation, JsonValueConverter_Context)
Appends given value type representing ManagedObject to given JsonRepresentation honoring JsonValueConverter.Context .
asObject(ManagedObject, JsonValueConverter_Context)
A JsonNode or otherwise natively supported simple type from given ManagedObject , honoring JsonValueConverter.Context .