Skip to content

Commit 05652c3

Browse files
authored
Document that other JVM languages are not fully supported (#2666)
1 parent 454a491 commit 05652c3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ There are a few open-source projects that can convert Java objects to JSON. Howe
88
> [!NOTE]\
99
> Gson is currently in maintenance mode; existing bugs will be fixed, but large new features will likely not be added. If you want to add a new feature, please first search for existing GitHub issues, or create a new one to discuss the feature and get feedback.
1010
11+
> [!IMPORTANT]\
12+
> Gson's main focus is on Java. Using it with other JVM languages such as Kotlin or Scala might work fine in many cases, but language-specific features such as Kotlin's non-`null` types or constructors with default arguments are not supported. This can lead to confusing and incorrect behavior.\
13+
> When using languages other than Java, prefer a JSON library with explicit support for that language.
14+
1115
### Goals
1216
* Provide simple `toJson()` and `fromJson()` methods to convert Java objects to JSON and vice-versa
1317
* Allow pre-existing unmodifiable objects to be converted to and from JSON

0 commit comments

Comments
 (0)