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
def fromMap = [integer:1, bool: true] as JSONObject
34
34
def strAsJson1 = "{integer:1, bool: true}" as JSON
35
35
def strAsJson2 = "[1,2,3]" as JSON
@@ -46,7 +46,7 @@
46
46
<li>Any other type will be discarded, the object will not be affected nor an exception will be thrown.</li>
47
47
</ul>
48
48
</li>
49
-
<li>JSONObject and JSONarray implement java.util.Comparable, which enables the use of the comparison operators with them (including the spaceship operator).</li>
49
+
<li>JSONObject and JSONArray implement java.util.Comparable, which enables the use of the comparison operators with them (including the spaceship operator).</li>
50
50
<li>JSONObject implements java.util.Map and JSONArray implements java.util.List, anything you can do with Maps and List can be done with JSONObject and JSONArray.</li>
51
51
<li>JsonGroovyBuilder behaves like the JsonBuilder found in Grails but it will create a JSONObject/JSONArray instead of writing the built structure into a String.</li>
0 commit comments