File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
jsonb/src/main/java/io/avaje/jsonb Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 12
12
strategy :
13
13
fail-fast : false
14
14
matrix :
15
- java_version : [11, 17]
15
+ java_version : [17]
16
16
os : [ubuntu-latest]
17
17
18
18
steps :
Original file line number Diff line number Diff line change @@ -185,8 +185,15 @@ static Builder newBuilder() {
185
185
* <h3>toJson() example</h3>
186
186
* <pre>{@code
187
187
*
188
+ * Object anything = ...
189
+ * String jsonContent = jsonb.toJson(anything);
190
+ *
188
191
* Customer customer = ...
189
192
*
193
+ * // any type toJson()
194
+ * String jsonContent = jsonb.toJson(customer);
195
+ *
196
+ * // or use .type(Customer.class) if we like
190
197
* String jsonContent = jsonb
191
198
* .type(Customer.class)
192
199
* .toJson(customer);
@@ -208,7 +215,7 @@ static Builder newBuilder() {
208
215
* .type(Object.class)
209
216
* .toJson(any);
210
217
*
211
- * // the same as
218
+ * // which is the same as
212
219
* String jsonContent = jsonb.toJson(any);
213
220
*
214
221
* }</pre>
You can’t perform that action at this time.
0 commit comments