Subversion Repositories cryptochat

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 daniel-mar 1
<?xml version="1.0" encoding="iso-8859-1"?>
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
  <html xmlns="http://www.w3.org/1999/xhtml">
4
                <head>
5
                        <!-- template designed by Marco Von Ballmoos -->
6
                        <title>Docs for page JSON.php</title>
7
                        <link rel="stylesheet" href="../media/stylesheet.css" />
8
                        <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
9
                </head>
10
                <body>
11
                        <div class="page-body">                
12
<h2 class="file-name">/JSON.php</h2>
13
 
14
<a name="sec-description"></a>
15
<div class="info-box">
16
        <div class="info-box-title">Description</div>
17
        <div class="nav-bar">
18
                                        <span class="disabled">Description</span> |
19
                                                        <a href="#sec-classes">Classes</a>
20
                        |                                                                       <a href="#sec-constants">Constants</a>
21
                                                                                </div>
22
        <div class="info-box-body">    
23
                <!-- ========== Info from phpDoc block ========= -->
24
<p class="short-description">Converts to and from JSON format.</p>
25
<p class="description"><p>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.</p><p>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</p><p>All strings should be in ASCII or UTF-8 format!</p><p>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.</p><p>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.</p></p>
26
        <ul class="tags">
27
                                <li><span class="field">license:</span> <a href="http://www.opensource.org/licenses/bsd-license.php">http://www.opensource.org/licenses/bsd-license.php</a></li>
28
                                <li><span class="field">link:</span> <a href="http://pear.php.net/pepr/pepr-proposal-show.php?id=198">http://pear.php.net/pepr/pepr-proposal-show.php?id=198</a></li>
29
                                <li><span class="field">version:</span> CVS: $Id: JSON.php,v 1.31 2006/06/28 05:54:17 migurski Exp $</li>
30
                                <li><span class="field">copyright:</span> 2005 Michal Migurski</li>
31
                                <li><span class="field">author:</span> Matt Knapp &lt;<a href="mailto:mdknapp[at]gmail[dot]com">mailto:mdknapp[at]gmail[dot]com</a>&gt;</li>
32
                                <li><span class="field">author:</span> Brett Stimmerman &lt;<a href="mailto:brettstimmerman[at]gmail[dot]com">mailto:brettstimmerman[at]gmail[dot]com</a>&gt;</li>
33
                                <li><span class="field">author:</span> Michal Migurski &lt;<a href="mailto:mike-json@teczno.com">mailto:mike-json@teczno.com</a>&gt;</li>
34
                        </ul>
35
 
36
                        </div>
37
</div>
38
 
39
        <a name="sec-classes"></a>     
40
        <div class="info-box">
41
                <div class="info-box-title">Classes</div>
42
                <div class="nav-bar">
43
                        <a href="#sec-description">Description</a> |
44
                        <span class="disabled">Classes</span>
45
                        |                                                                               <a href="#sec-constants">Constants</a>
46
                                                                                                                        </div>
47
                <div class="info-box-body">    
48
                        <table cellpadding="2" cellspacing="0" class="class-table">
49
                                <tr>
50
                                        <th class="class-table-header">Class</th>
51
                                        <th class="class-table-header">Description</th>
52
                                </tr>
53
                                                                <tr>
54
                                        <td style="padding-right: 2em; vertical-align: top">
55
                                                <a href="../Services_JSON/Services_JSON.html">Services_JSON</a>
56
                                        </td>
57
                                        <td>
58
                                                                                        Converts to and from JSON format.
59
                                                                                </td>
60
                                </tr>
61
                                                                <tr>
62
                                        <td style="padding-right: 2em; vertical-align: top">
63
                                                <a href="../Services_JSON/Services_JSON_Error.html">Services_JSON_Error</a>
64
                                        </td>
65
                                        <td>
66
 
67
                                                                                </td>
68
                                </tr>
69
                                                        </table>
70
                </div>
71
        </div>
72
 
73
 
74
        <a name="sec-constants"></a>   
75
        <div class="info-box">
76
                <div class="info-box-title">Constants</div>
77
                <div class="nav-bar">
78
                        <a href="#sec-description">Description</a> |
79
                                                        <a href="#sec-classes">Classes</a>
80
                                |                                                                       <span class="disabled">Constants</span>
81
                                                                                        </div>
82
                <div class="info-box-body">    
83
                        <a name="defineSERVICES_JSON_IN_ARR"><!-- --></a>
84
<div class="oddrow">
85
 
86
        <div>
87
                <span class="const-title">
88
                        <span class="const-name">SERVICES_JSON_IN_ARR</span> = 3
89
                        (line <span class="line-number">72</span>)
90
                </span>
91
        </div>
92
 
93
        <!-- ========== Info from phpDoc block ========= -->
94
<p class="short-description">Marker constant for Services_JSON::decode(), used to flag stack state</p>
95
 
96
 
97
</div>
98
<a name="defineSERVICES_JSON_IN_CMT"><!-- --></a>
99
<div class="evenrow">
100
 
101
        <div>
102
                <span class="const-title">
103
                        <span class="const-name">SERVICES_JSON_IN_CMT</span> = 5
104
                        (line <span class="line-number">82</span>)
105
                </span>
106
        </div>
107
 
108
        <!-- ========== Info from phpDoc block ========= -->
109
<p class="short-description">Marker constant for Services_JSON::decode(), used to flag stack state</p>
110
 
111
 
112
</div>
113
<a name="defineSERVICES_JSON_IN_OBJ"><!-- --></a>
114
<div class="oddrow">
115
 
116
        <div>
117
                <span class="const-title">
118
                        <span class="const-name">SERVICES_JSON_IN_OBJ</span> = 4
119
                        (line <span class="line-number">77</span>)
120
                </span>
121
        </div>
122
 
123
        <!-- ========== Info from phpDoc block ========= -->
124
<p class="short-description">Marker constant for Services_JSON::decode(), used to flag stack state</p>
125
 
126
 
127
</div>
128
<a name="defineSERVICES_JSON_IN_STR"><!-- --></a>
129
<div class="evenrow">
130
 
131
        <div>
132
                <span class="const-title">
133
                        <span class="const-name">SERVICES_JSON_IN_STR</span> = 2
134
                        (line <span class="line-number">67</span>)
135
                </span>
136
        </div>
137
 
138
        <!-- ========== Info from phpDoc block ========= -->
139
<p class="short-description">Marker constant for Services_JSON::decode(), used to flag stack state</p>
140
 
141
 
142
</div>
143
<a name="defineSERVICES_JSON_LOOSE_TYPE"><!-- --></a>
144
<div class="oddrow">
145
 
146
        <div>
147
                <span class="const-title">
148
                        <span class="const-name">SERVICES_JSON_LOOSE_TYPE</span> = 16
149
                        (line <span class="line-number">87</span>)
150
                </span>
151
        </div>
152
 
153
        <!-- ========== Info from phpDoc block ========= -->
154
<p class="short-description">Behavior switch for Services_JSON::decode()</p>
155
 
156
 
157
</div>
158
<a name="defineSERVICES_JSON_SLICE"><!-- --></a>
159
<div class="evenrow">
160
 
161
        <div>
162
                <span class="const-title">
163
                        <span class="const-name">SERVICES_JSON_SLICE</span> = 1
164
                        (line <span class="line-number">62</span>)
165
                </span>
166
        </div>
167
 
168
        <!-- ========== Info from phpDoc block ========= -->
169
<p class="short-description">Marker constant for Services_JSON::decode(), used to flag stack state</p>
170
 
171
 
172
</div>
173
<a name="defineSERVICES_JSON_SUPPRESS_ERRORS"><!-- --></a>
174
<div class="oddrow">
175
 
176
        <div>
177
                <span class="const-title">
178
                        <span class="const-name">SERVICES_JSON_SUPPRESS_ERRORS</span> = 32
179
                        (line <span class="line-number">92</span>)
180
                </span>
181
        </div>
182
 
183
        <!-- ========== Info from phpDoc block ========= -->
184
<p class="short-description">Behavior switch for Services_JSON::decode()</p>
185
 
186
 
187
</div>
188
                </div>
189
        </div>
190
 
191
 
192
 
193
        <p class="notes" id="credit">
194
                Documentation generated on Tue, 27 Jun 2006 22:54:25 -0700 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.2.3</a>
195
        </p>
196
        </div></body>
197
</html>