PHP 7 has a new feature which is a return type declaration.
We can return type a 'string' like:
function myFunction ($a) : string { }
We can also return type an 'array' like:
function myFunction ($a) : array { }
But how can we declare a 'JSON' type of response?