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)
    serializeWithPolicy
    (
    Serializer
    alias Policy
    T
    ARGS...
    )
    (,
    ARGS args
    )
  2. void serializeWithPolicy(Serializer serializer, T value)

See Also

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

Meta