Skip to content

Commit a360c40

Browse files
author
Douglas Crockford
committed
Disallow ; and =>
1 parent 72cde1f commit a360c40

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

JSONArray.java

+2-5
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-
* @version 2012-11-13
78+
* @version 2013-04-18
8179
*/
8280
public class JSONArray {
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)