Registry / serialization / gson
library2.14.0javamavenunverified

A Java library for serializing and deserializing JSON objects to and from Java objects.

<dependency> <groupId>com.google.code.gson</groupId> <artifactId>gson</artifactId> <version>2.14.0</version> </dependency>
INSTALL
IMPORT
SIG · GSON
G
gson
serializationjavav2.14.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Gson
com.google.gson.Gson

Serialize a Java object to JSON using Gson.

import com.google.gson.Gson; public class Example { public static void main(String[] args) { Gson gson = new Gson(); String json = gson.toJson(new Person("John", 30)); System.out.println(json); } static class Person { String name; int age; Person(String name, int age) { this.name = name; this.age = age; } } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.14.0latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
gson — mvn dependency:get gson · libregistry