peridot/vendor/gopkg.in/square/go-jose.v2/json
2022-07-07 22:13:21 +02:00
..
BUILD.bazel Initial commit 2022-07-07 22:13:21 +02:00
decode.go Initial commit 2022-07-07 22:13:21 +02:00
encode.go Initial commit 2022-07-07 22:13:21 +02:00
indent.go Initial commit 2022-07-07 22:13:21 +02:00
LICENSE Initial commit 2022-07-07 22:13:21 +02:00
README.md Initial commit 2022-07-07 22:13:21 +02:00
scanner.go Initial commit 2022-07-07 22:13:21 +02:00
stream.go Initial commit 2022-07-07 22:13:21 +02:00
tags.go Initial commit 2022-07-07 22:13:21 +02:00

Safe JSON

This repository contains a fork of the encoding/json package from Go 1.6.

The following changes were made:

  • Object deserialization uses case-sensitive member name matching instead of case-insensitive matching. This is to avoid differences in the interpretation of JOSE messages between go-jose and libraries written in other languages.
  • When deserializing a JSON object, we check for duplicate keys and reject the input whenever we detect a duplicate. Rather than trying to work with malformed data, we prefer to reject it right away.