GitHub
github.com › google › gson
GitHub - google/gson: A Java serialization/deserialization library to convert Java Objects into JSON and back · GitHub
Despite supporting older Java versions, Gson also provides a JPMS module descriptor (module name com.google.gson) for users of Java 9 or newer.
Starred by 24.3K users
Forked by 4.4K users
Languages Java
Maven Repository
mvnrepository.com › artifact › com.google.code.gson › gson
Maven Repository: com.google.code.gson » gson
September 10, 2025 - Gson is a Java library that can be used to convert Java Objects into their JSON representation.
Videos
Maven Central
repo1.maven.org › maven2 › com › google › code › gson › gson › 2.10.1
Central Repository: com/google/code/gson/gson/2.10.1
../ gson-2.10.1-javadoc.jar 2023-01-06 15:44 706662 gson-2.10.1-javadoc.jar.asc 2023-01-06 15:44 496 gson-2.10.1-javadoc.jar.md5 2023-01-06 15:44 32 gson-2.10.1-javadoc.jar.sha1 2023-01-06 15:44 40 gson-2.10.1-sources.jar 2023-01-06 15:44 181840 gson-2.10.1-sources.jar.asc 2023-01-06 15:44 496 gson-2.10.1-sources.jar.md5 2023-01-06 15:44 32 gson-2.10.1-sources.jar.sha1 2023-01-06 15:44 40 gson-2.10.1.jar 2023-01-06 15:44 283367 gson-2.10.1.jar.asc 2023-01-06 15:44 496 gson-2.10.1.jar.md5 2023-01-06 15:44 32 gson-2.10.1.jar.sha1 2023-01-06 15:44 40 gson-2.10.1.pom 2023-01-06 15:44 9365 gson-2.10.1.pom.asc 2023-01-06 15:44 496 gson-2.10.1.pom.md5 2023-01-06 15:44 32 gson-2.10.1.pom.sha1 2023-01-06 15:44 40
Top answer 1 of 5
14
First you need to clone the repository locally on your computer:
git clone https://github.com/google/gson
Then you go inside the project folder ./gson and you create the jar file running:
mvn package
Of course to do this you need to have maven installed, if you are under osx you can install it running
brew install maven
Otherwise you can look for the installation for your system on the maven official website
After running mvn package the jar file will be in ./gson/gson/target/gson-2.7.1-SNAPSHOT.jar
2 of 5
9
There is a MVN Repo http://mvnrepository.com/ there you will find how to add to a maven OR in your case how to download the lib jars

Jar-Download
jar-download.com › home › com.google.code.gson › gson › 2.8.2 › source code
Download gson JAR 2.8.2 ➔ With all dependencies!
Download gson JAR 2.8.2 ✓ Free ✓ With dependencies ✓ Source of gson ☄ One click! ☄
Maven Repository
mvnrepository.com › artifact › com.google.code.gson › gson › 2.3.1
Maven Repository: com.google.code.gson » gson » 2.3.1
Gson is a Java library that can be used to convert Java Objects into their JSON representation.
Jarcasting
jarcasting.com › artifacts › com.google.code.gson › gson › 2.3.1
com.google.code.gson » gson » 2.3.1 - jar download | JarCasting
Download package files of com.google.code.gson » gson » 2.3.1 and jars with java source files
Javadoc.io
javadoc.io › doc › com.google.code.gson › gson › latest › index.html
gson 2.13.2 javadoc (com.google.code.gson)
Latest version of com.google.code.gson:gson · https://javadoc.io/doc/com.google.code.gson/gson · Current version 2.13.2 · https://javadoc.io/doc/com.google.code.gson/gson/2.13.2 · package-list path (used for javadoc generation -link option) https://javadoc.io/doc/com.google.code.gson/gson/2.13.2/package-list ·
Javadoc.io
javadoc.io › doc › com.google.code.gson › gson › latest › com.google.gson › module-summary.html
com.google.gson module summary - gson 2.13.2 javadoc
Bookmarks · Latest version of com.google.code.gson:gson · https://javadoc.io/doc/com.google.code.gson/gson · Current version 2.13.2 · https://javadoc.io/doc/com.google.code.gson/gson/2.13.2 · package-list path (used for javadoc generation -link option) · https://javadoc.io/doc/com.go...
Maven Central
repo1.maven.org › maven2 › com › google › code › gson › gson › 2.8.9
Central Repository: com/google/code/gson/gson/2.8.9
../ gson-2.8.9-javadoc.jar 2021-10-29 20:00 679597 gson-2.8.9-javadoc.jar.asc 2021-10-29 20:00 496 gson-2.8.9-javadoc.jar.md5 2021-10-29 20:00 32 gson-2.8.9-javadoc.jar.sha1 2021-10-29 20:00 40 gson-2.8.9-sources.jar 2021-10-29 20:00 163187 gson-2.8.9-sources.jar.asc 2021-10-29 20:00 496 gson-2.8.9-sources.jar.md5 2021-10-29 20:00 32 gson-2.8.9-sources.jar.sha1 2021-10-29 20:00 40 gson-2.8.9.jar 2021-10-29 20:00 258075 gson-2.8.9.jar.asc 2021-10-29 20:00 496 gson-2.8.9.jar.md5 2021-10-29 20:00 32 gson-2.8.9.jar.sha1 2021-10-29 20:00 40 gson-2.8.9.pom 2021-10-29 20:00 6325 gson-2.8.9.pom.asc 2021-10-29 20:00 496 gson-2.8.9.pom.md5 2021-10-29 20:00 32 gson-2.8.9.pom.sha1 2021-10-29 20:00 40
Eclipse
download.eclipse.org › releases › 2022-12 › 202212071000 › buildInfo › archive › download.eclipse.org › releases › 2022-12 › 202212071000 › index › com.google.gson_2.9.1.v20220915-1632.html
com.google.gson 2.9.1.v20220915-1632
January 12, 2022 - · <unit id="com.google.gson" version="2.9.1.v20220915-1632" singleton="false" generation="2"> <update id="com.google.gson" range="[0.0.0,2.9.1.v20220915-1632)" severity="0"/> <properties size="10"> <property name="df_LT.bundleVendor" value="Eclipse Orbit"/> <property name="df_LT.bundleName" value="Gson: Google Json Library for Java"/> <property name="org.eclipse.equinox.p2.name" value="%bundleName"/> <property name="org.eclipse.equinox.p2.description" value="Gson JSON library"/> <property name="org.eclipse.equinox.p2.provider" value="%bundleVendor"/> <property name="org.eclipse.equinox.p2.con
Maven Central Repository
search.maven.org › com.google.code.gson › gson › 2.8.6
Maven Central Repository Search
<dependency> <groupId>com.google.code.gson</groupId> <artifactId>gson</artifactId> <version>2.8.6</version> </dependency>
TutorialsPoint
tutorialspoint.com › gson › gson_quick_guide.htm
GSON - Quick Guide
Set the CLASSPATH environment variable to point to the Gson jar location. Before going into the details of the Google Gson library, let's see an application in action. In this example, we've created a Student class. We'll create a JSON string with student details and deserialize it to student object and then serialize it to an JSON String. package com.tutorialspoint; import com.google.gson.Gson; import com.google.gson.GsonBuilder; public class GsonTester { public static void main(String[] args) { String jsonString = "{\"name\":\"Mahesh\", \"age\":21}"; GsonBuilder builder = new GsonBuilder();
Maven Repository
mvnrepository.com › artifact › com.google.code.gson › gson › 2.8.0
Maven Repository: com.google.code.gson » gson » 2.8.0
Gson is a Java library that can be used to convert Java Objects into their JSON representation.
Maven Central
repo1.maven.org › maven2 › com › google › code › gson › gson › 2.8.2
Central Repository: com/google/code/gson/gson/2.8.2
com/google/code/gson/gson/2.8.2 · / gson-2.8.2-javadoc.jar 2017-09-20 01:42 263440 gson-2.8.2-javadoc.jar.asc 2017-09-20 01:42 473 gson-2.8.2-javadoc.jar.asc.md5 2017-09-20 01:42 32 gson-2.8.2-javadoc.jar.asc.sha1 2017-09-20 01:42 40 gson-2.8.2-javadoc.jar.md5 2017-09-20 01:42 32 ...
Wikipedia
en.wikipedia.org › wiki › Gson
Gson - Wikipedia
October 30, 2025 - package main; import example.Person; import com.google.gson.Gson; public class Main { public static void main(String[] args) { Gson gson = new Gson(); String json = "{\"name\":\"John\",\"surname\":\"Doe\",\"cars\":[{\"manufacturer\":\"Audi\",\"model\":\"A4\"," + "\"capacity\":1.8,\"accident\":false},{\"manufacturer\":\"Škoda\",\"model\":\"Octavia\",\"capacity\"" + ":2.0,\"accident\":true}],\"phone\":2025550191}"; Person johnDoe = gson.fromJson(json, Person.class); System.out.println(johnDoe.toString()); } }
GitHub
github.com › google › gson › releases
Releases · google/gson
Improved packaging of JPMS module declaration in Gson jar This fixes an issue where Eclipse and VS Code users could not refer to the Gson module name com.google.gson.
Author google
Maven Repository
mvnrepository.com › artifact › com.google.code.gson › gson › 2.8.9
Maven Repository: com.google.code.gson » gson » 2.8.9
Home » com.google.code.gson » gson » 2.8.9 · Gson is a Java library that can be used to convert Java Objects into their JSON representation. It can also be used to convert a JSON string to an equivalent Java object. LicenseApache 2.0 · CategoriesJSON Libraries · Tagsformatjsongooglep...