Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Christophe Colombier
Christophe Colombier

Posted on

     

Go: the future encoding/json/v2 module

Here is a current implementation of the future encoding/json/v2 in Go

GitHub logo go-json-experiment / json

Experimental implementation of a proposed v2 encoding/json package

JSON Serialization (v2)

GoDevBuild Status

This module hosts an experimental implementation of v2encoding/jsonThe API is unstable and breaking changes will regularly be madeDo not depend on this in publicly available modules.

Any commits that make breaking API or behavior changes will be markedwith the string "WARNING: " near the top of the commit message.It is your responsibility to inspect the list of commit changeswhen upgrading the module. Not all breaking changes will lead to build failures.

ADiscussion about including this package in Go asencoding/json/v2 has been started on the Go Github project on 2023-10-05. Please provide your feedback there.

Goals and objectives

  • Mostly backwards compatible: If possible, v2 should aim to bemostlycompatible with v1 in terms of both API and default behavior to ease migrationFor example, theMarshal andUnmarshal functions are the most widely useddeclarations in the v1…

This project is not only a proof of concept, but also an idea of the future implementation that will help sorting out many issues with current encoding/json

You get some information in this GitHub issue

https://github.com/golang/go/discussions/63397

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Smiling person, father of two, Husband, Senior Developer/Architect (in that exact order, it's important)Experience in development since 2004Linux user and advocate since 2001
  • Location
    Villeurbanne, France
  • Education
    Arts et Métiers
  • Work
    VP Technology
  • Joined

More fromChristophe Colombier

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp