open-nomad/vendor/gopkg.in/square/go-jose.v2/json
Yoan Blanc 67692789b7
vendor: vault api and sdk
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-03-21 17:57:48 +01:00
..
decode.go vendor: vault api and sdk 2020-03-21 17:57:48 +01:00
encode.go vendor: vault api and sdk 2020-03-21 17:57:48 +01:00
indent.go vendor: vault api and sdk 2020-03-21 17:57:48 +01:00
LICENSE vendor: vault api and sdk 2020-03-21 17:57:48 +01:00
README.md vendor: vault api and sdk 2020-03-21 17:57:48 +01:00
scanner.go vendor: vault api and sdk 2020-03-21 17:57:48 +01:00
stream.go vendor: vault api and sdk 2020-03-21 17:57:48 +01:00
tags.go vendor: vault api and sdk 2020-03-21 17:57:48 +01: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.