You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-11Lines changed: 12 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
#Original [package org.json] Douglas Crockford
3
3
4
4
The key changes are:
5
-
##JSONObject is extended from LinkedHashMap ##
5
+
##JSONObject is extended from LinkedHashMap
6
6
7
7
* Ensures order of elements
8
8
* Enables the normal HashMap methods to be available although most of them were overridden in earlier implementation like keys() and keySet()
@@ -14,18 +14,19 @@ The key changes are:
14
14
> This is because in JDK 7 getDeclaredMethods() does not retrieve the methods in order it is random and can vary from time to time. A bug was logged for jdk but was rejected as wont fix.
15
15
> In JDK6 and lower versions the order is maintained however this is a feature not mentioned in specifications of jdk.
16
16
17
-
##JSONArray extends from ArrayList##
17
+
##JSONArray extends from ArrayList
18
18
* This in combination with JSONObjects extends from LinkedHashMap enables the whole library to be usable in a generic way where other libraries which uses model data in any combination of Map<String, Object> and List<Object> for example Map<String,List<Object>>.
19
19
20
20
21
-
##XML to JSON Serialization##
21
+
##XML to JSON Serialization
22
22
* Attributes are marked with a '@' prepended to the key
23
23
* Content element is marked with a '#' prepended to the key
24
24
* Since the json keeps order of the original xml elements it can be deserialized back to same xml.
25
25
26
+
#### Earlier version of JSON below refers to release version 20090211 or before.
0 commit comments