# Moshi, another JSON Processor

DevFeed: [Moshi, another JSON Processor](<https://devfeed.tech/articles/moshi-another-json-processor-15770.md>)

Original publisher: [Read original article](<https://developer.squareup.com/blog/moshi-another-json-processor>)

Author: Jesse Wilson

Published: 2017-03-27T19:50:19Z

Content type: article

Language: en

Sources: [Square Corner](<https://devfeed.tech/sources/square-corner-blog-medium.md>)

Topics: [JSON](<https://devfeed.tech/topics/json.md>), [Gson](<https://devfeed.tech/topics/gson.md>)

Tags: [1-4](<https://devfeed.tech/tags/1-4.md>), [adapter](<https://devfeed.tech/tags/adapter.md>), [android](<https://devfeed.tech/tags/android.md>), [api](<https://devfeed.tech/tags/api.md>), [codegen](<https://devfeed.tech/tags/codegen.md>), [dagger](<https://devfeed.tech/tags/dagger.md>), [decoder](<https://devfeed.tech/tags/decoder.md>), [decoding](<https://devfeed.tech/tags/decoding.md>), [dependency-injection](<https://devfeed.tech/tags/dependency-injection.md>), [encoding](<https://devfeed.tech/tags/encoding.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [google](<https://devfeed.tech/tags/google.md>), [gson](<https://devfeed.tech/tags/gson.md>), [integration-testing](<https://devfeed.tech/tags/integration-testing.md>), [java](<https://devfeed.tech/tags/java.md>), [jdk](<https://devfeed.tech/tags/jdk.md>), [json](<https://devfeed.tech/tags/json.md>), [library](<https://devfeed.tech/tags/library.md>), [moshi](<https://devfeed.tech/tags/moshi.md>), [processor](<https://devfeed.tech/tags/processor.md>)

## AI overview

Moshi is presented as a small, efficient JSON library designed to make safer defaults than Gson without changing Gson's established behavior. Gson's default date encoding omits a time zone, and its lenient parsing accepts malformed JSON; changing those behaviors could break applications that rely on them. Moshi instead requires explicit adapters for platform types such as `java.util.UUID`, helping prevent accidental serialization of implementation details, and offers a strict mode that can fail on unexpected fields during integration testing. The excerpt also notes that Moshi 1.4 added JSON values that convert objects to either a byte stream or an in-memory model.

## Source excerpt

It's rare for a programmer to get to work on the same problem twice. Either the first is good enough and you're done, or it wasn't and...