JsonContent: Support non-object values as root structure
authorTimo Tijhof <krinklemail@gmail.com>
Fri, 16 Jan 2015 03:25:15 +0000 (19:25 -0800)
committerOri.livneh <ori@wikimedia.org>
Fri, 16 Jan 2015 20:57:07 +0000 (20:57 +0000)
commit7c340aed294a80bf165aa779e160e9f3f71a4286
treeef1ff7597ac71069befa819822bfc1e2734e5723
parentf3ccb8a8a4db3d92d208eb765f9741174e837e02
JsonContent: Support non-object values as root structure

* Remove is_object restriction from isValid.
* Implement rootValueTable to support rendering of other
  root structures.

Also:
* Minor method documentation tweaks.
* Document why quotes are not escaped for strings in value cells.

Bug: T86270
Change-Id: Ic1d10393912fcefa22d675fd4aa2baf437d2a05a
includes/content/JsonContent.php
resources/src/mediawiki/mediawiki.content.json.css
tests/phpunit/includes/content/JsonContentTest.php