src/POData/Writers/Json/JsonODataV1Writer.php
/**
     * Begin write complex property.
     *
     * @param ODataProperty $property property to write.
     *
     * @return JsonODataV1Writer
     */
Begin write complex property.
@param ODataProperty $property property to write.


Begin write complex property . @param ODataProperty $property property to write .
protected function writeComplexProperty(ODataProperty $property)
    {
        $this->_writer
	        ->startObjectScope()
	        ->writeName(ODataConstants::JSON_METADATA_STRING)
	        ->startObjectScope()
	        ->writeName(ODataConstants::JSON_TYPE_STRING)
	        ->writeValue($property->typeName)
	        ->endScope();
	    $this->writeProperties($property->value);
		$this->_writer->endScope();
	    return $this;
    }
protected function writeComplexProperty ( ODataProperty $ property ) { $ this -> _writer -> startObjectScope ( ) -> writeName ( ODataConstants :: JSON_METADATA_STRING ) -> startObjectScope ( ) -> writeName ( ODataConstants :: JSON_TYPE_STRING ) -> writeValue ( $ property -> typeName ) -> endScope ( ) ; $ this -> writeProperties ( $ property -> value ) ; $ this -> _writer -> endScope ( ) ; return $ this ; }
Begin write complex property.
Begin write complex property .
// { // __metadata : { Type : "typename" }