An OX Controller
file: code/Winxle-Admin/WinxleRequest.pm 53: sub new_json_response { 54: my ( $self, $data ) = @_; 55: 56: return $self->new_response( 57: headers => [ content_type => 'application/json' ], 58: status => 200, 59: content => $self->_json_encode($data), 60: ); 61: }