Skip to content

Commit 69fe385

Browse files
committed
Adding link to JSON annotations on the serialization page
1 parent e2e473a commit 69fe385

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

doc/annotations.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ then in the `Country` bean, the `getUsers()` method will be protected.
181181

182182
The @Json annotations
183183
---------------------
184-
<small>(In development)</small>
185184

186185
The `@Json` set of annotations helps monitoring the generation of `jsonSerialize` method.
187186

doc/json_serialization.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,8 @@ So a typical serialized bean might look like this:
3636
]
3737
}
3838
```
39+
40+
If you want to customize JSON serialization, you have 2 options:
41+
42+
1. you can override the `jsonSerialize` method in each bean class (the method is defined in the abstract bean)
43+
2. you can add JSON annotations to your DB columns comments. [JSON annotations are described in the page dedicated to annotations.](annotations.md#the-json-annotations)

0 commit comments

Comments
 (0)