Skip to content

Commit 044b8fc

Browse files
committed
Merge branch 'Alanscut-fix-adoc'
2 parents 4de9af9 + 987707f commit 044b8fc

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

docs/guide/src/docs/asciidoc/groovy.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ in the same manner as you do now with POJOs. There are other features as well:
1212

1313
[source,groovy]
1414
----
15-
def fromList = [1,true,'json'] as JSONarray
15+
def fromList = [1,true,'json'] as JSONArray
1616
def fromMap = [integer:1, bool: true] as JSONObject
1717
def strAsJson1 = "{integer:1, bool: true}" as JSON
1818
def strAsJson2 = "[1,2,3]" as JSON
@@ -31,7 +31,7 @@ def strAsFunc = "function(param){ this.param = param; }" as JSONFunction
3131
ll create a JSONArray because it is a List).
3232
** Any other type will be discarded, the object will not be affected nor
3333
an exception will be thrown.
34-
* JSONObject and JSONarray implement java.util.Comparable, which enables the use of
34+
* JSONObject and JSONArray implement java.util.Comparable, which enables the use of
3535
the comparison operators with them (including the spaceship operator).
3636
* JSONObject implements java.util.Map and JSONArray implements java.util.List,
3737
anything you can do with Maps and List can be done with JSONObject and JSONArray.

docs/guide/src/docs/asciidoc/introduction.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ and many others.
6969
These properties make JSON an ideal data-interchange
7070
language.
7171

72-
NOTE: Documentation for older releases can be found at link:json-lib.sourceforge.net/[]
72+
NOTE: Documentation for older releases can be found at link:http://json-lib.sourceforge.net/[]

docs/guide/src/docs/asciidoc/usage.adoc

+6-6
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@ class MyBean{
7979
private String func1 = "function(i){ return this.options[i]; }";
8080
private JSONFunction func2 = new JSONFunction(new String[]{"i"},"return this.options[i];");
8181
82-
// getters & setters
82+
// getters, setters
8383
...
8484
}
8585
8686
JSONObject jsonObject = JSONObject.fromObject( new MyBean() );
8787
System.out.println( jsonObject );
8888
/* prints
8989
{"name":"json","pojoId":1,"options":["a","f"],
90-
"func1":function(i){ return this.options[i];},
90+
"func1":"function(i){ return this.options[i];}",
9191
"func2":function(i){ return this.options[i];}}
9292
*/
9393
----
@@ -153,12 +153,12 @@ Example:
153153
----
154154
class MyBean{
155155
private List data;
156-
// getters & setters
156+
// getters, setters
157157
}
158158
159159
class Person{
160160
private String name;
161-
// getters & setters
161+
// getters, setters
162162
}
163163
164164
...
@@ -206,7 +206,7 @@ with '@' will be treated as an attribute, any property named '#text' will be tre
206206

207207
Please review the javadoc for XMLSerializer to know more about the configurable options.
208208

209-
[cols="l,l"]
209+
[cols="1,1"]
210210
|===
211211
|*Code* | *XML output*
212212

@@ -246,7 +246,7 @@ JSONFunction needs an additional parameter that specifies that function's params
246246
All xml attributes will have the prefix '@' and text nodes will have the property name '#text'. XMLSerializer supports
247247
the rules outlined at http://www.xml.com/pub/a/2006/05/31/converting-between-xml-and-json.html[Converting Between XML and JSON]
248248

249-
[cols="l,l"]
249+
[cols="1,1"]
250250
|===
251251
|*XML input* | *Code*
252252

subprojects/json-lib-core/src/site/xdoc/features.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<li>skip modifying map keys when transforming form JSON to Java if the key is not a valid JavaIdentifier</li>
2828
<li>register your own JavaIdentifierTransformer strategy</li>
2929
<li>plugin your own strategy for setting properties into a bean when transforming from JSON to Java thanks to PropertySetStrategy</li>
30-
<li>publish events when building a JSONObject or JSONarray. The available events are:
30+
<li>publish events when building a JSONObject or JSONArray. The available events are:
3131
<ul>
3232
<li>object start/end</li>
3333
<li>array start/end</li>

subprojects/json-lib-core/src/site/xdoc/groovy.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
A String can be transformed into JSON, JSONObject, JSONArray and JSONFunction.
3030
<br/>
3131
<textarea cols="70" rows="4" class="groovy:nocontrols:nogutter" name="srccode">
32-
def fromList = [1,true,'json'] as JSONarray
32+
def fromList = [1,true,'json'] as JSONArray
3333
def fromMap = [integer:1, bool: true] as JSONObject
3434
def strAsJson1 = "{integer:1, bool: true}" as JSON
3535
def strAsJson2 = "[1,2,3]" as JSON
@@ -46,7 +46,7 @@
4646
<li>Any other type will be discarded, the object will not be affected nor an exception will be thrown.</li>
4747
</ul>
4848
</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>
5050
<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>
5151
<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>
5252
</ul>

0 commit comments

Comments
 (0)