Manual:FormatJson.php
MediaWiki file: FormatJson.php | |
---|---|
Location: | includes/json/ |
Source code: | master • 1.43.1 • 1.42.6 • 1.39.12 |
Classes: | FormatJson |
A wrapper for json_encode
and json_decode
.
- encode() - returns the JSON representation of a value.
- parse() - decode a JSON string.
- decode() - decode a JSON string. It is recommended to use parse() instead.
- stripComments() - remove multi-line and single-line comments from an otherwise valid JSON input string.