JSON
The json method outputs pretty-printed JSON to the terminal:
$climate->json([
  'name' => 'Gary',
  'age'  => 52,
  'job'  => 'Engineer',
]);
{
    "name": "Gary",
    "age": 52,
    "job": "Engineer"
}
 
    
     CLImate
        PHP's best friend for the terminal.
    
    
        Presented by The League of Extraordinary Packages
            
        
        CLImate
        PHP's best friend for the terminal.
    
    
        Presented by The League of Extraordinary Packages
    
The json method outputs pretty-printed JSON to the terminal:
$climate->json([
  'name' => 'Gary',
  'age'  => 52,
  'job'  => 'Engineer',
]);
{
    "name": "Gary",
    "age": 52,
    "job": "Engineer"
}