src/Graviton/DocumentBundle/Serializer/Handler/HashHandler.php
public function serializeHashToJson(
        JsonSerializationVisitor $visitor,
        Hash $data,
        array $type,
        Context $context
    ) {
        return new Hash($data);
    }
public function serializeHashToJson(
        JsonSerializationVisitor $visitor,
        Hash $data,
        array $type,
        Context $context
    ) {
        return new Hash($data);
    }
public function serializeHashToJson ( JsonSerializationVisitor $ visitor , Hash $ data , array $ type , Context $ context ) { return new Hash ( $ data ) ; }
Serialize Hash object

@param JsonSerializationVisitor $visitor Visitor
@param Hash                     $data    Data
@param array                    $type    Type
@param Context                  $context Context
@return Hash
Serialize Hash object