framework/RedKiteCms/Tools/JsonTools.php
public static function toJson(Serializer $serializer, \RedKiteCms\Content\Block\BaseBlock $block)
    {
        return $serializer->serialize($block, 'json');
    }
public static function toJson(Serializer $serializer, \RedKiteCms\Content\Block\BaseBlock $block)
    {
        return $serializer->serialize($block, 'json');
    }
Serializes a block

@param \JMS\Serializer\Serializer $serializer
@param \RedKiteCms\Content\Block\BaseBlock $block

@return string