Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita360c40

Browse files
author
Douglas Crockford
committed
Disallow ; and =>
1 parent72cde1f commita360c40

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

‎JSONArray.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,13 @@ of this software and associated documentation files (the "Software"), to deal
6969
* <li>Strings do not need to be quoted at all if they do not begin with a quote
7070
* or single quote, and if they do not contain leading or trailing spaces, and
7171
* if they do not contain any of these characters:
72-
* <code>{ } [ ] / \ : ,= ;#</code> and if they do not look like numbers and
72+
* <code>{ } [ ] / \ : , #</code> and if they do not look like numbers and
7373
* if they are not the reserved words <code>true</code>, <code>false</code>, or
7474
* <code>null</code>.</li>
75-
* <li>Values can be separated by <code>;</code> <small>(semicolon)</small> as
76-
* well as by <code>,</code> <small>(comma)</small>.</li>
7775
* </ul>
7876
*
7977
* @author JSON.org
80-
* @version2012-11-13
78+
* @version2013-04-18
8179
*/
8280
publicclassJSONArray {
8381

@@ -117,7 +115,6 @@ public JSONArray(JSONTokener x) throws JSONException {
117115
this.myArrayList.add(x.nextValue());
118116
}
119117
switch (x.nextClean()) {
120-
case';':
121118
case',':
122119
if (x.nextClean() ==']') {
123120
return;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp