src/POData/Writers/Json/JsonWriter.php
/**
     * Write the string value with/without quotes
     * 
     * @param string $text   value to be written
     * @param string $quotes put quotes around the value if this value is true
     * 
     * @return void
     */
Write the string value with/without quotes

@param string $text   value to be written
@param string $quotes put quotes around the value if this value is true

@return void
Write the string value with / without quotes @param string $text value to be written @param string $quotes put quotes around the value if this value is true @return void
private function _writeCore($text, $quotes)
    {
        if (count($this->_scopes) != 0) {
            $currentScope = end($this->_scopes);
            if ($currentScope->type == $this->_scopeType['Array']) {
                if ($currentScope->objectCount != 0) {
                    $this->_writer->writeTrimmed(", ");
                }
                $currentScope->objectCount++;
            }
        }
        if ($quotes && $text !== 'null') {
            $this->_writer->writeValue('"');
        }
        $this->_writer->writeValue($text);
        if ($quotes && $text !== 'null') {
            $this->_writer->writeValue('"');
        }
    }
private function _writeCore ( $ text , $ quotes ) { if ( count ( $ this -> _scopes ) != 0 ) { $ currentScope = end ( $ this -> _scopes ) ; if ( $ currentScope -> type == $ this -> _scopeType [ 'Array' ] ) { if ( $ currentScope -> objectCount != 0 ) { $ this -> _writer -> writeTrimmed ( " ,  " ) ; } $ currentScope -> objectCount ++ ; } } if ( $ quotes && $ text !== 'null' ) { $ this -> _writer -> writeValue ( '"' ) ; } $ this -> _writer -> writeValue ( $ text ) ; if ( $ quotes && $ text !== 'null' ) { $ this -> _writer -> writeValue ( '"' ) ; } }
Write the string value with/without quotes
Write the string value with / without quotes