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