Variant

asBuffer() [Variant class]

Since 6.2.0:

// PROTOTYPE
Buffer& asBuffer();

A Variant containing a Buffer cannot be serialized to JSON or deserialized from JSON as JSON does not support binary values.

See value, as, and to for when to use the asXXX() vs. other accessors.