add JSON export renderer

This commit is contained in:
2021-10-29 11:39:56 +02:00
parent ea77239510
commit 74edceafc8
4 changed files with 56 additions and 1 deletions

View File

@ -21,6 +21,7 @@ class RendererBridge
{
const FORMAT_CSV = 'CSV';
const FORMAT_PRETTY = 'Pretty';
const FORMAT_JSON = 'JSON';
/**
* @return array
@ -29,7 +30,8 @@ class RendererBridge
{
return [
self::FORMAT_CSV => oxNew(Csv::class),
self::FORMAT_PRETTY => oxNew(Pretty::class)
self::FORMAT_PRETTY => oxNew(Pretty::class),
self::FORMAT_JSON => oxNew(Json::class)
];
}