View Source argo_json_value_encoder (argo v1.0.6)

Summary

Types

-type t() ::
    #argo_json_value_encoder{current_path :: argo_path_value:t(),
                             field_errors ::
                                 argo_index_map:t(argo_path_value:t(), argo_error_value:t()),
                             response_errors :: [argo_error_value:t()],
                             scalar_encoder :: {module(), argo_json_scalar_encoder:t()}}.

Functions

Link to this function

encode_value(JsonValueEncoder, Value)

View Source
-spec encode_value(JsonValueEncoder, Value) -> {JsonValueEncoder, JsonValue}
                when
                    JsonValueEncoder :: t(),
                    Value :: argo_value:t(),
                    JsonValue :: argo_json:json_value().
-spec new() -> JsonValueEncoder when JsonValueEncoder :: t().
Link to this function

new(JsonScalarEncoderModule, JsonScalarEncoderOptions)

View Source
-spec new(JsonScalarEncoderModule, JsonScalarEncoderOptions) -> JsonValueEncoder
       when
           JsonScalarEncoderModule :: module(),
           JsonScalarEncoderOptions :: argo_json_scalar_encoder:options(),
           JsonValueEncoder :: t().