square / square/wire

Support JSON via Kotlin Serialization

Open
#1,854 0 comments 8 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
4.4k
Forks
627
Avg merge
3d 15m
Merged PRs (30d)
20

Description

I’d like to use Kotlin Serialization APIs to encode and decode JSON on the JVM, native, and JavaScript.

An early start is here:
https://github.com/square/wire/pull/1851

We still need:

  • Proper support for all fancy JavaScript types like Duration and Instant.
  • Fix the API to subclasses Message if possible
  • Share JVM test coverage with Gson and Moshi

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the early implementation in pull request 1851 and compare it with the three remaining requirements in this issue. The work is done when JavaScript types such as Duration and Instant are supported, the Message subclass API is addressed, and JVM coverage is shared with Gson and Moshi.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.