Skip to content

Commit bacfc17

Browse files
Update README.md
1 parent 885b206 commit bacfc17

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Delphi-JsonToDelphiClass
2020
Delphi doesn't support Nullable types, so use this attribute to strip TDateTime property where value is 0.
2121

2222
A Small example:
23-
```
23+
``` pascal
2424
type
2525
TDateTimeDTO = class(TJsonDTO)
2626
private
@@ -34,7 +34,7 @@ type
3434
```
3535
The above class will generate the following JSON, if both properties is 0
3636

37-
```
37+
```json
3838
{
3939
"suppressDate":"",
4040
"noSuppressDate":"1899-12-30T00:00:00.000Z"
@@ -61,7 +61,7 @@ NOTE: You can turn off this feature in the settings form
6161

6262
E.g this JSON generated faulty code:
6363

64-
```
64+
```json
6565
{
6666
"/": {
6767
"readonly": true
@@ -122,7 +122,7 @@ E.g this JSON generated faulty code:
122122
* Support for objects with diffrents properties in an Array
123123

124124
Eg this JSON
125-
```
125+
```json
126126
{
127127
"ArrayTest":[
128128
{
@@ -136,7 +136,7 @@ Eg this JSON
136136
```
137137

138138
Generates the following DTO:
139-
```
139+
```pascal
140140
TArrayTestDTO = class
141141
private
142142
FS1: string;

0 commit comments

Comments
 (0)