Page MenuHomeWickedGov Phorge

JsonSerializer.php
No OneTemporary

Size
736 B
Referenced Files
None
Subscribers
None

JsonSerializer.php

<?php
/**
* @license GPL-2.0-or-later
* @file
* @ingroup Json
*/
namespace MediaWiki\Json;
use JsonException;
/**
* Serializes things to JSON.
*
* @stable to type
* @since 1.36
* @package MediaWiki\Json
* @deprecated since 1.45; use JsonCodecInterface
*/
interface JsonSerializer {
/**
* Encode $value as JSON with an intent to use JsonDeserializer::unserialize
* to decode it back.
*
* @param mixed|JsonDeserializable $value A value to encode. Can be any scalar,
* array, stdClass, JsonDeserializable or any combination of them.
* @throws JsonException if the value can not be serialized.
* @return string
*/
public function serialize( $value );
// TODO: move more methods from FormatJson to here.
}

File Metadata

Mime Type
text/x-php
Expires
Oct 6 2026, 11:30 (6 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
d2/0d/75e8177d69e43398db57b22481e3
Default Alt Text
JsonSerializer.php (736 B)

Event Timeline