Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • G go
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • go
  • Repository
You need to sign in or sign up before continuing.
  • go
  • src
  • encoding
  • json
  • encode.go
Find file BlameHistoryPermalink
  • Lucas Bremgartner's avatar
    encoding/json: make Number with the ,string option marshal with quotes · 49e7c767
    Lucas Bremgartner authored Sep 13, 2019
    Add quotes when marshaling a json.Number with the string option
    set via a struct tag. This ensures that the resulting json
    can be unmarshaled into the source struct without error.
    
    Fixes #34268
    
    Change-Id: Ide167d9dec77019554870b5957b37dc258119d81
    GitHub-Last-Rev: dde81b71208be01c253bb87dbb6f81ac6e0785be
    GitHub-Pull-Request: golang/go#34269
    Reviewed-on: https://go-review.googlesource.com/c/go/+/195043
    
    
    Reviewed-by: default avatarDaniel Martí <mvdan@mvdan.cc>
    Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    49e7c767
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7