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

Appearance settings

Commit a360c40

Browse filesBrowse files
author
Douglas Crockford
committed
Disallow ; and =>
1 parent 72cde1f commit a360c40
Copy full SHA for a360c40

File tree

Expand file treeCollapse file tree

1 file changed

+2
-5
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-5
lines changed
Open diff view settings
Collapse file

‎JSONArray.java‎

Copy file name to clipboardExpand all lines: JSONArray.java
+2-5Lines 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-
* @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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.