src/Peach/DF/JsonCodec/Value.php
private function decodeLiteral(Context $context, $literal, $value)
    {
        $count = strlen($literal);
        if ($context->getSequence($count) !== $literal) {
            $current = $context->current();
            throw $context->createException("Unexpected character found ('{$current}')");
        }
        $this->result = $value;
        $context->skip($count);
    }
private function decodeLiteral(Context $context, $literal, $value)
    {
        $count = strlen($literal);
        if ($context->getSequence($count) !== $literal) {
            $current = $context->current();
            throw $context->createException("Unexpected character found ('{$current}')");
        }
        $this->result = $value;
        $context->skip($count);
    }
リテラル null, true, false をデコードします.

@param Context $context
@param string  $literal
@param mixed   $value