src/AbstractJsonEncoder.php
private function processValue($value)
    {
        $this->valueStack[] = $value;
        $value = $this->resolveValue($value);

        if (is_array($value) || is_object($value)) {
            $this->pushStack($value);
        } else {
            $this->outputJson($value, JsonToken::T_VALUE);
            array_pop($this->valueStack);
        }
    }
private function processValue($value)
    {
        $this->valueStack[] = $value;
        $value = $this->resolveValue($value);

        if (is_array($value) || is_object($value)) {
            $this->pushStack($value);
        } else {
            $this->outputJson($value, JsonToken::T_VALUE);
            array_pop($this->valueStack);
        }
    }
private function processValue ( $ value ) { $ this -> valueStack [ ] = $ value ; $ value = $ this -> resolveValue ( $ value ) ; if ( is_array ( $ value ) || is_object ( $ value ) ) { $ this -> pushStack ( $ value ) ; } else { $ this -> outputJson ( $ value , JsonToken :: T_VALUE ) ; array_pop ( $ this -> valueStack ) ; } }
Handles the given JSON value appropriately depending on it's type.
@param mixed $value The value that should be encoded as JSON
Handles the given JSON value appropriately depending on it s type .