# Moshi

> A modern JSON library for Android, Java and Kotlin

Source: https://talira.ai/catalog/moshi-6f1zqsd4
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [developer tools / parsing / json](https://talira.ai/categories/developer-tools/parsing/json), [languages / java](https://talira.ai/categories/languages/java)
- Licence: Apache-2.0[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Block](https://talira.ai/orgs/block.md)

Moshi is a JSON library for Android, Java and Kotlin from Square that parses JSON into Java and Kotlin classes and writes them back. You build a Moshi instance and ask it for a JsonAdapter for a type; Kotlin classes are handled by code generation with KSP or by a reflection-based adapter factory, and custom adapters handle types it can't convert on its own. It's published as separate artifacts for the core library, Kotlin support, Kotlin code generation and extra adapters.

## Links

- GitHub: https://github.com/square/moshi
- Docs: https://square.github.io/moshi/1.x/

## Problems it solves

- parse a JSON API response into Kotlin data classes on Android
- serialize Java objects to JSON with custom adapters
- a JSON library that understands Kotlin nullability and default values

## Features

- parse JSON into Java and Kotlin classes
- Kotlin code generation with KSP
- custom type adapters
- Android support

## Trust

Overall: 0.43 out of 1.
Signals: maintenance 0.27, adoption 0.80, momentum 0.56, community 0.79, backing 0.30, extensibility 0.00.

- 10.2k GitHub stars
- 96 contributors
- backed by Block

Warnings:

- last commit 5 months ago

## Alternatives

- [Gson](https://talira.ai/catalog/gson-gym31c30.md): Google's Java library for converting objects to and from JSON
- [Jackson](https://talira.ai/catalog/jackson-4j3s0grs.md): The Java JSON library: a suite of data-processing tools for Java and the JVM
- [FASTJSON 2](https://talira.ai/catalog/fastjson-2-bbdzeh74.md): High-performance JSON library for Java, the successor to fastjson
- [JSON-java (org.json)](https://talira.ai/catalog/json-java-org-json-q1cbb2tt.md): The reference JSON implementation for Java, in the public domain

## Sources

[^1]: https://github.com/square/moshi/blob/master/LICENSE.txt (checked 28 Nov 2026)
