WordPress at Your Fingertips
function is not described

WC_API_JSON_Handler::parse_body() public WC 2.1

Parse the raw request body entity

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

No Hooks.

Return

Array|Mixed.

Usage

$WC_API_JSON_Handler = new WC_API_JSON_Handler();
$WC_API_JSON_Handler->parse_body( $body );
$body(string) (required)
the raw request body

Changelog

Since 2.1 Introduced.

Code of WC_API_JSON_Handler::parse_body() WC 5.5.2

<?php
public function parse_body( $body ) {

	return json_decode( $body, true );
}