You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -124,7 +124,7 @@ const user: User = User.fromJSON(jsonString);
124
124
user.getFullName(); // ✅ Works perfectly and returns a string
125
125
```
126
126
127
-
## 🎓 Core Concepts
127
+
## Core Concepts
128
128
129
129
### Type Safety
130
130
@@ -162,7 +162,7 @@ class StrictUser extends Serializable {
162
162
}
163
163
```
164
164
165
-
## 🎨 Decorators
165
+
## Decorators
166
166
167
167
### @jsonProperty
168
168
@@ -252,7 +252,7 @@ class User extends Serializable {
252
252
}
253
253
```
254
254
255
-
## 🔧 Advanced Usage
255
+
## Advanced Usage
256
256
257
257
This example is written in TypeScript, but it also works in JavaScript (without type annotations).
258
258
@@ -320,7 +320,7 @@ user.getFullName(); // works fine and returns a string
320
320
user.getAge(); // works fine and returns a number
321
321
```
322
322
323
-
## 🔧 Standalone Functions
323
+
## Standalone Functions
324
324
325
325
The library provides standalone utility functions `fromJSON` and `toJSON` that can be used with any objects, not just classes that extend `Serializable`. This is useful when you want to use the serialization features without inheritance.
326
326
@@ -486,7 +486,7 @@ console.log(jsonToSend);
486
486
// }
487
487
```
488
488
489
-
## 🐍 Naming Strategies
489
+
## Naming Strategies
490
490
491
491
The library supports automatic conversion between different naming conventions, making it easy to work with APIs that use different naming styles. Supported strategies include:
If you need to create view-models from DTO or entity models, you can add view-specific properties and mark them with `@jsonIgnore()` to exclude them from serialization.
563
563
@@ -583,7 +583,7 @@ JSON.stringify(user);
583
583
// Result: {"firstName":"","familyName":""}
584
584
```
585
585
586
-
## 📤 FormData Conversion
586
+
## FormData Conversion
587
587
588
588
When working with file uploads, converting files to JSON (base64) can freeze the UI for large files. The library provides built-in FormData conversion as a more efficient alternative.
589
589
@@ -774,7 +774,7 @@ The FormData conversion handles different types intelligently:
774
774
775
775
**Note:** All decorators (`@jsonIgnore`, `@jsonName`, naming strategies) are respected during FormData conversion.
776
776
777
-
## 💡 Additional Features
777
+
## Additional Features
778
778
779
779
### Deep Copy
780
780
@@ -845,7 +845,7 @@ const team = Team.fromJSON(json);
0 commit comments