src/Leevel/Http/JsonResponse.php
public static function fromJsonString(?string $data = null, $status = 200, $headers = []): IResponse
    {
        return new static($data, $status, $headers, true);
    }
public static function fromJsonString(?string $data = null, $status = 200, $headers = []): IResponse
    {
        return new static($data, $status, $headers, true);
    }
从 JSON 字符串创建响应对象

@param string $data
@param int    $status
@param array  $headers

@return static