Skip to content

Commit 38ef4de

Browse files
author
Boris Fersing
committed
Changed the package name to permissive.org.json and added back the support for malformed JSON (allow = and => after the key)
1 parent 8114b97 commit 38ef4de

28 files changed

Lines changed: 45 additions & 39 deletions

‎CDL.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.json;
1+
package permissive.org.json;
22

33
/*
44
Copyright (c) 2002 JSON.org

‎Cookie.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.json;
1+
package permissive.org.json;
22

33
/*
44
Copyright (c) 2002 JSON.org

‎CookieList.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.json;
1+
package permissive.org.json;
22

33
/*
44
Copyright (c) 2002 JSON.org

‎HTTP.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.json;
1+
package permissive.org.json;
22

33
/*
44
Copyright (c) 2002 JSON.org

‎HTTPTokener.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.json;
1+
package permissive.org.json;
22

33
/*
44
Copyright (c) 2002 JSON.org

‎JSONArray.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.json;
1+
package permissive.org.json;
22

33
/*
44
Copyright (c) 2002 JSON.org

‎JSONException.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.json;
1+
package permissive.org.json;
22

33
/**
44
* The JSONException is thrown by the JSON.org classes when things are amiss.

‎JSONML.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.json;
1+
package permissive.org.json;
22

33
/*
44
Copyright (c) 2008 JSON.org

‎JSONObject.java‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.json;
1+
package permissive.org.json;
22

33
/*
44
Copyright (c) 2002 JSON.org
@@ -211,7 +211,13 @@ public JSONObject(JSONTokener x) throws JSONException {
211211
// The key is followed by ':'.
212212

213213
c = x.nextClean();
214-
if (c != ':') {
214+
215+
if (c == '=') {
216+
if (x.next() != '>') {
217+
x.back();
218+
}
219+
} else if (c != ':') {
220+
215221
throw x.syntaxError("Expected a ':' after a key");
216222
}
217223
this.putOnce(key, x.nextValue());

‎JSONString.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.json;
1+
package permissive.org.json;
22
/**
33
* The <code>JSONString</code> interface allows a <code>toJSONString()</code>
44
* method so that a class can change the behavior of

0 commit comments

Comments
 (0)