Parsoid
A bidirectional parser between wikitext and HTML5
|
This is a "compatible" JSON codec for the use of Parsoid test runners, etc. More...
Protected Member Functions | |
codecFor (string $className) | |
This is a "compatible" JSON codec for the use of Parsoid test runners, etc.
In addition to supporting objects which implement JsonCodecable
, it tries to handle objects we might get from mediawiki-core which implement JsonSerializable and other legacy serialization types.
This should not be relied on for production!
However, it is good enough to use in test cases, etc, and hopefully makes them a little bit less fragile by not blowing up if it gets a martian object from mediawiki-core stuck into the parser's extension data.
|
protected |
class-string | $className | |
array | $json |