File tree 1 file changed +12
-6
lines changed 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 1
1
Delphi-JsonToDelphiClass
2
2
========================
3
- ## Fixes & Features: 03h October 2021 ##
3
+ ## Fixes & Features: 23th December 2021 ##
4
+
5
+ ### Features ###
6
+ * Added ASP.NET interface: www.Json2Delphi.com
7
+ * Source code included
8
+
9
+ ## Fixes & Features: 03th October 2021 ##
4
10
5
11
### Bugs: ###
6
12
* Wrong type detection. '2019-08-29' wasn't recognized as a Date, but a string
@@ -14,7 +20,7 @@ Delphi-JsonToDelphiClass
14
20
Delphi doesn't support Nullable types, so use this attribute to strip TDateTime property where value is 0.
15
21
16
22
A Small example:
17
- ```
23
+ ``` pascal
18
24
type
19
25
TDateTimeDTO = class(TJsonDTO)
20
26
private
28
34
```
29
35
The above class will generate the following JSON, if both properties is 0
30
36
31
- ```
37
+ ``` json
32
38
{
33
39
"suppressDate" :" " ,
34
40
"noSuppressDate" :" 1899-12-30T00:00:00.000Z"
@@ -55,7 +61,7 @@ NOTE: You can turn off this feature in the settings form
55
61
56
62
E.g this JSON generated faulty code:
57
63
58
- ```
64
+ ``` json
59
65
{
60
66
"/" : {
61
67
"readonly" : true
@@ -116,7 +122,7 @@ E.g this JSON generated faulty code:
116
122
* Support for objects with diffrents properties in an Array
117
123
118
124
Eg this JSON
119
- ```
125
+ ``` json
120
126
{
121
127
"ArrayTest" :[
122
128
{
@@ -130,7 +136,7 @@ Eg this JSON
130
136
```
131
137
132
138
Generates the following DTO:
133
- ```
139
+ ``` pascal
134
140
TArrayTestDTO = class
135
141
private
136
142
FS1: string;
You can’t perform that action at this time.
0 commit comments