JsonValueEncoderService

Converts value representing ManagedObject s to their corresponding JSON representation and back.

API

JsonValueEncoderService.java
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 Context , otherwise null .

2 appendValueAndFormat(ManagedObject, JsonRepresentation, JsonValueConverter_Context)

Appends given value type representing ManagedObject to given JsonRepresentation honoring Context .

3 asObject(ManagedObject, JsonValueConverter_Context)

A JsonNode or otherwise natively supported simple type from given ManagedObject , honoring Context .

Members

asAdapter(ObjectSpecification, JsonRepresentation, JsonValueConverter_Context)

The value recovered from JsonRepresentation as ManagedObject honoring Context , otherwise null .

appendValueAndFormat(ManagedObject, JsonRepresentation, JsonValueConverter_Context)

Appends given value type representing ManagedObject to given JsonRepresentation honoring Context .

asObject(ManagedObject, JsonValueConverter_Context)

A JsonNode or otherwise natively supported simple type from given ManagedObject , honoring Context .