src/RocknRoot/StrayFw/Render/RenderJson.php
public function render(array $args, bool $prettyPrint = null)
    {
        header('Content-type: application/json');
        if ((constant('STRAY_ENV') === 'development' && $prettyPrint !== false) || $prettyPrint === true) {
            return (string) json_encode($args, JSON_PRETTY_PRINT);
        }

        return (string) json_encode($args);
    }
public function render(array $args, bool $prettyPrint = null)
    {
        header('Content-type: application/json');
        if ((constant('STRAY_ENV') === 'development' && $prettyPrint !== false) || $prettyPrint === true) {
            return (string) json_encode($args, JSON_PRETTY_PRINT);
        }

        return (string) json_encode($args);
    }
Return the generated display.

@param  array  $args        view args
@param  bool   $prettyPrint force pretty print parameter
@return string content