> For the complete documentation index, see [llms.txt](https://prtechs-organization.gitbook.io/e2encrypt-frame-php/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://prtechs-organization.gitbook.io/e2encrypt-frame-php/controllers/returning-json.md).

# Returning JSON

Response Return JSON

```php
$Request->Response('JSON' , ['status' => true, 'message' => "Hi!"]);
```

**In Action**

```php
<?php
class Welcome extends Controller{
    public $defaultController = "index";
    
    public function index(){
        echo $this->Response('JSON' , ['status' => true, 'message' => "You've Successfully Saw the API!"]);
    }
}
```
