MediaWiki
REL1_19
|
Converts to and from JSON format. More...
Go to the source code of this file.
Classes | |
class | Services_JSON |
Converts to and from JSON format. More... | |
class | Services_JSON_Error |
Enumerations | |
enum | SERVICES_JSON_IN_ARR |
Marker constant for Services_JSON::decode(), used to flag stack state. More... | |
enum | SERVICES_JSON_IN_CMT |
Marker constant for Services_JSON::decode(), used to flag stack state. More... | |
enum | SERVICES_JSON_IN_OBJ |
Marker constant for Services_JSON::decode(), used to flag stack state. More... | |
enum | SERVICES_JSON_IN_STR |
Marker constant for Services_JSON::decode(), used to flag stack state. More... | |
enum | SERVICES_JSON_LOOSE_TYPE |
Behavior switch for Services_JSON::decode() More... | |
enum | SERVICES_JSON_SLICE |
Marker constant for Services_JSON::decode(), used to flag stack state. More... | |
enum | SERVICES_JSON_SUPPRESS_ERRORS |
Behavior switch for Services_JSON::decode() More... |
Converts to and from JSON format.
JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. It is based on a subset of the JavaScript Programming Language, Standard ECMA-262 3rd Edition - December 1999. This feature can also be found in Python. JSON is a text format that is completely language independent but uses conventions that are familiar to programmers of the C-family of languages, including C, C++, C#, Java, JavaScript, Perl, TCL, and many others. These properties make JSON an ideal data-interchange language.
This package provides a simple encoder and decoder for JSON notation. It is intended for use with client-side Javascript applications that make use of HTTPRequest to perform server communication functions - data can be encoded into JSON notation for use in a client-side javascript, or decoded from incoming Javascript requests. JSON format is native to Javascript, and can be directly eval()'ed with no further parsing overhead
All strings should be in ASCII or UTF-8 format!
LICENSE: Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file Services_JSON.php.
enum SERVICES_JSON_IN_ARR |
Marker constant for Services_JSON::decode(), used to flag stack state.
Definition at line 72 of file Services_JSON.php.
enum SERVICES_JSON_IN_CMT |
Marker constant for Services_JSON::decode(), used to flag stack state.
Definition at line 82 of file Services_JSON.php.
enum SERVICES_JSON_IN_OBJ |
Marker constant for Services_JSON::decode(), used to flag stack state.
Definition at line 77 of file Services_JSON.php.
enum SERVICES_JSON_IN_STR |
Marker constant for Services_JSON::decode(), used to flag stack state.
Definition at line 67 of file Services_JSON.php.
Behavior switch for Services_JSON::decode()
Definition at line 87 of file Services_JSON.php.
enum SERVICES_JSON_SLICE |
Marker constant for Services_JSON::decode(), used to flag stack state.
Definition at line 62 of file Services_JSON.php.
Behavior switch for Services_JSON::decode()
Definition at line 92 of file Services_JSON.php.