Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F6103959
JsonSerializer.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
736 B
Referenced Files
None
Subscribers
None
JsonSerializer.php
View Options
<?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
Details
Attached
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)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment