jsonSerialize() public méthode

See also: http://php.net/manual/en/jsonserializable.jsonserialize.php
public jsonSerialize ( )
 public function testSerializationShouldConvertEmptyPropertiesArrayToObject()
 {
     $feature = new Feature(null, array());
     $expected = array('type' => 'Feature', 'geometry' => null, 'properties' => new \stdClass());
     $this->assertEquals($expected, $feature->jsonSerialize());
 }