serializeWithPolicy

Serializes a value with the given serializer, representing values according to Policy when possible.

The serializer must have a value result for the first form to work. Otherwise, use the range based form.

  1. auto serializeWithPolicy(T value, ARGS args)
  2. void serializeWithPolicy(Serializer serializer, T value)
    void
    serializeWithPolicy
    (
    Serializer
    alias Policy
    T
    )
    (
    ref Serializer serializer
    ,)

See Also

vson.json.JsonSerializer, vson.json.JsonStringSerializer, vson.bson.BsonSerializer

Meta