getJSON() публичный Метод

get the json
С версии: 3.0.0
public getJSON ( ) : string
Результат string
Пример #1
0
 /**
  * testConvertToJSON
  *
  * @since 3.0.0
  */
 public function testConvertToJSON()
 {
     /* setup */
     $reader = new Reader();
     $reader->loadXML('tests/provider/reader.xml');
     /* actual */
     $actual = $reader->getJSON();
     /* compare */
     $this->assertString($actual);
 }