Skip to content

Commit 0d4617d

Browse files
committed
Enabled serialization to JSONObject and JSONArray
1 parent 34f327e commit 0d4617d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

JSONArray.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ of this software and associated documentation files (the "Software"), to deal
7777
* @author JSON.org
7878
* @version 2013-04-18
7979
*/
80-
public class JSONArray {
80+
public class JSONArray implements java.io.Serializable {
8181

8282
/**
8383
* The arrayList where the JSONArray's properties are kept.

JSONObject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ of this software and associated documentation files (the "Software"), to deal
9292
* @author JSON.org
9393
* @version 2013-06-17
9494
*/
95-
public class JSONObject {
95+
public class JSONObject implements java.io.Serializable {
9696
/**
9797
* JSONObject.NULL is equivalent to the value that JavaScript calls null,
9898
* whilst Java's null is equivalent to the value that JavaScript calls

0 commit comments

Comments
 (0)