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
  • go
  • src
  • encoding
  • json
  • encode.go
Find file BlameHistoryPermalink
  • Larz Conwell's avatar
    encoding/json: Only allow string option for valid types · 1a4e1770
    Larz Conwell authored May 16, 2015
    The "string" option only applies for strings, floats, integers, and
    booleans as per the documentation. So when decoding ignore the "string"
    option if the value is not of one of the types mentioned. This matches
    the Marshal step which also ignores the "string" option for invalid
    types.
    
    Fixes #9812
    
    Change-Id: I0fb2b43d0668bc0e2985886d989abbf2252070e2
    Reviewed-on: https://go-review.googlesource.com/10183
    
    
    Reviewed-by: default avatarRuss Cox <rsc@golang.org>
    1a4e1770
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7