Skip to content

Commit

Permalink
Merge pull request #3329 from MrRawbin/docs_fix_gson_imports
Browse files Browse the repository at this point in the history
📜 Fixed imports of GsonModule in docs
  • Loading branch information
jknack authored Feb 11, 2024
2 parents e5be048 + 31e9a2d commit 0256e17
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/asciidoc/modules/gson.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ JSON support using https://github.com/google/gson[Gson] library.
.Java
[source, java, role="primary"]
----
import io.jooby.json.GsonModule;
import io.jooby.gson.GsonModule;
{
install(new GsonModule()); <1>
Expand All @@ -34,7 +34,7 @@ import io.jooby.json.GsonModule;
.Kotlin
[source, kt, role="secondary"]
----
import io.jooby.json.GsonModule
import io.jooby.gson.GsonModule
{
install(GsonModule()) <1>
Expand Down Expand Up @@ -62,7 +62,7 @@ Access to default object mapper is available via require call:
.Default object mapper
[source, java, role="primary"]
----
import io.jooby.json.GsonModule;
import io.jooby.gson.GsonModule;
{
install(new GsonModule());
Expand All @@ -76,7 +76,7 @@ import io.jooby.json.GsonModule;
.Kotlin
[source, kt, role="secondary"]
----
import io.jooby.json.GsonModule
import io.jooby.gson.GsonModule
{
install(GsonModule())
Expand All @@ -90,7 +90,7 @@ You can provide your own `Gson`:
.Custom ObjectMapper
[source, java, role="primary"]
----
import io.jooby.json.GsonModule;
import io.jooby.gson.GsonModule;
{
Gson gson = new GsonBuilder().create();
Expand All @@ -102,7 +102,7 @@ import io.jooby.json.GsonModule;
.Kotlin
[source, kt, role="secondary"]
----
import io.jooby.json.GsonModule
import io.jooby.gson.GsonModule
{
val gson = GsonBuilder().create()
Expand Down

0 comments on commit 0256e17

Please sign in to comment.