Skip to content

Commit 6b86a21

Browse files
committed
readme formatting 2
1 parent 5a6f2a0 commit 6b86a21

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ An xml of format
3333

3434
//In earlier version it used to serialize to
3535
{"root":{"person":{"fname":"samarjit","lname":"samanta","content":"normal text"}}}
36-
36+
```
3737
##JSON to XML Serialization##
3838

3939
Since we have the attribute marked in the json, we can create back the exact xml
@@ -48,7 +48,7 @@ Since we have the attribute marked in the json, we can create back the exact xml
4848
{"root":{"person":{"content":"normal text","lname":"samanta","fname":"samarjit"}}}
4949
//produces
5050
<root><person>normal text<lname>samanta</lname><fname>samarjit</fname></person></root>
51-
51+
```
5252
5353
Example of libraries that uses model as combination of Map<String,Object> and List<Object> and arbitrary java beans.
5454

@@ -70,7 +70,7 @@ Example of libraries that uses model as combination of Map<String,Object> and Li
7070
String ret = out.toString();
7171

7272
System.out.println(ret);
73-
73+
```
7474
Result
7575

7676
//This version produces
@@ -90,7 +90,7 @@ Result
9090
System.out.println(Ognl.getValue("ar[0]", rootObject , jobj1 ));
9191
Object obj2 = Ognl.getValue("someBean.sss",context);
9292
System.out.println(obj2);
93-
93+
```
9494
Result
9595
This version produces
9696
```java
@@ -99,7 +99,7 @@ This version produces
9999

100100
//Earlier version json
101101
ognl.NoSuchPropertyException: org.json.JSONObject.ar
102-
102+
```
103103

104104

105105
Please refer to the original README for other functions.

0 commit comments

Comments
 (0)