We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12bbe8c commit 7fdf40cCopy full SHA for 7fdf40c
1 file changed
JSONObject.java
@@ -161,7 +161,7 @@ public String toString() {
161
/**
162
* The map where the JSONObject's properties are kept.
163
*/
164
- private final Map<String, Object> map;
+ protected final Map<String, Object> map;
165
166
167
* It is sometimes more convenient and less ambiguous to have a
@@ -181,7 +181,7 @@ public JSONObject() {
181
// implementations to rearrange their items for a faster element
182
// retrieval based on associative access.
183
// Therefore, an implementation mustn't rely on the order of the item.
184
- this.map = new HashMap<String, Object>();
+ this.map = new LinkedHashMap<String, Object>();
185
}
186
187
0 commit comments