Update support for JSON in mediawiki-defines.txt

* Updated support for JSON in mediawiki-defines.txt
* Added tests for JSON support

Change-Id: I3c982836ce3cadc448ca6f3fc5d5b4f166920c06
Merge "Update support for JSON in mediawiki-defines.txt"