File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ Delphi-JsonToDelphiClass
20
20
Delphi doesn't support Nullable types, so use this attribute to strip TDateTime property where value is 0.
21
21
22
22
A Small example:
23
- ```
23
+ ``` pascal
24
24
type
25
25
TDateTimeDTO = class(TJsonDTO)
26
26
private
34
34
```
35
35
The above class will generate the following JSON, if both properties is 0
36
36
37
- ```
37
+ ``` json
38
38
{
39
39
"suppressDate" :" " ,
40
40
"noSuppressDate" :" 1899-12-30T00:00:00.000Z"
@@ -61,7 +61,7 @@ NOTE: You can turn off this feature in the settings form
61
61
62
62
E.g this JSON generated faulty code:
63
63
64
- ```
64
+ ``` json
65
65
{
66
66
"/" : {
67
67
"readonly" : true
@@ -122,7 +122,7 @@ E.g this JSON generated faulty code:
122
122
* Support for objects with diffrents properties in an Array
123
123
124
124
Eg this JSON
125
- ```
125
+ ``` json
126
126
{
127
127
"ArrayTest" :[
128
128
{
@@ -136,7 +136,7 @@ Eg this JSON
136
136
```
137
137
138
138
Generates the following DTO:
139
- ```
139
+ ``` pascal
140
140
TArrayTestDTO = class
141
141
private
142
142
FS1: string;
You can’t perform that action at this time.
0 commit comments