Skip to content

Commit

Permalink
Merge branch 'latest' into explain-text-field-validation
Browse files Browse the repository at this point in the history
  • Loading branch information
vursen authored Oct 3, 2024
2 parents 4e4aa16 + a7ae5a4 commit 77189a5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions articles/hilla/lit/reference/type-conversion.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ public class MyBean {
}
----


[role="since:com.vaadin:[email protected]"]
=== JsonNode

The `JsonNode` Jackson type can be used to receive any kind of JSON object in Java. The `JsonNode` type is a tree model for JSON objects, and it can be used to navigate through the JSON object. The `JsonNode` type is converted to a TypeScript object with the type `unknown`. This means that the client-side code must correctly handle the type.
Expand Down Expand Up @@ -366,7 +366,7 @@ By default, the [classname]`ObjectMapper` converts Java's date time to a string
- `java.time.LocalDate` of `00:00:00 January 1st, 2019` => `'2019-01-01'`
- `java.time.LocalDateTime` of `00:00:00 January 1st, 2019` => `'2019-01-01T00:00:00'`


[role="since:com.vaadin:[email protected]"]
=== JsonNode

The `JsonNode` type in Java allows to send an arbitrary JSON to the client. It's converted to `unknown` in TypeScript. This means that the client-side code must handle correctly the type.
Expand Down Expand Up @@ -530,6 +530,7 @@ public class Sale {
}
----

[role="since:com.vaadin:[email protected]"]
=== `@JsonCreator` & `@JsonValue` Annotations (Domain Objects)

The `@JsonCreator` and `@JsonValue` annotations are powerful tools in the Jackson JSON library that allow you to create domain objects, also known as single-value objects.
Expand Down

0 comments on commit 77189a5

Please sign in to comment.