# stream/4.3.0/includes/feeds/json.php

Stream – Activity Log &amp; Audit Trail, version 4.3.0. 16 lines.

- Page: https://pluginprobe.com/plugins/stream/4.3.0/code/includes/feeds/json.php
- Raw: https://pluginprobe.com/plugins/stream/4.3.0/raw/includes/feeds/json.php
- Modified: 2026-07-02T11:03:58+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/stream/4.3.0/code/includes/feeds/json.php#L10-L20`.

```php
<?php
/**
 * Renders a JSON of records.
 *
 * @package WP_Stream
 *
 * @var $records
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

header( 'Content-type: application/json; charset=' . get_option( 'blog_charset' ), true );
echo wp_json_encode( $records, JSON_PRETTY_PRINT );

```
