Exemple #1
0
 public function handleGet()
 {
     echo \Core3\Writer\Json::encodeSlim(array('ping' => 'ok'));
 }
Exemple #2
0
 public function render(\Core3\Model\Spreadsheet $model)
 {
     return \Core3\Writer\Json::encodeSlim($model->getRows());
 }
Exemple #3
0
 public static function render($code, $message = '')
 {
     return \Core3\Writer\Json::encodeSlim(self::asArray($code, $message));
 }
Exemple #4
0
 function testEncodeSlimSlashes()
 {
     $o = new stdClass();
     $o->name = "path/to/file";
     $this->assertEquals('{"name":"path/to/file"}', \Core3\Writer\Json::encodeSlim($o));
 }