WordPress at a glance
function is not described

WP_oEmbed::_parse_json() private WP 3.0.0

Parses a json response body.

{} It's a method of the class: WP_oEmbed{}

No Hooks.

Return

Object/false.

Usage

// private - for code of main (parent) class only
$result = $this->_parse_json( $response_body );
$response_body(string) (required)

Changelog

Since 3.0.0 Introduced.

Code of WP_oEmbed::_parse_json() WP 5.5.1

<?php
private function _parse_json( $response_body ) {
	$data = json_decode( trim( $response_body ) );
	return ( $data && is_object( $data ) ) ? $data : false;
}