+ if ( $json === false ) {
+ // This should never happen, but it's a bug which could crop up
+ // if you use ApiResult::NO_VALIDATE for instance.
+ // @codeCoverageIgnoreStart
+ $this->dieDebug( __METHOD__, 'Unable to encode API result as JSON' );
+ // @codeCoverageIgnoreEnd
+ }