Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 16-Dec-2019 | - | ||||
testdata/ | H | 03-May-2022 | - | |||
LICENSE | H A D | 16-Dec-2019 | 1.4 KiB | 28 | 24 | |
README.md | H A D | 16-Dec-2019 | 632 | 14 | 10 | |
bench_test.go | H A D | 16-Dec-2019 | 4.5 KiB | 224 | 190 | |
decode.go | H A D | 16-Dec-2019 | 28.6 KiB | 1,184 | 854 | |
decode_test.go | H A D | 16-Dec-2019 | 33 KiB | 1,475 | 1,284 | |
encode.go | H A D | 16-Dec-2019 | 30.8 KiB | 1,198 | 862 | |
encode_test.go | H A D | 16-Dec-2019 | 10.5 KiB | 539 | 452 | |
indent.go | H A D | 16-Dec-2019 | 3.4 KiB | 142 | 107 | |
number_test.go | H A D | 16-Dec-2019 | 2.2 KiB | 134 | 116 | |
scanner.go | H A D | 16-Dec-2019 | 16.5 KiB | 624 | 450 | |
scanner_test.go | H A D | 16-Dec-2019 | 6.5 KiB | 317 | 271 | |
stream.go | H A D | 16-Dec-2019 | 11.3 KiB | 481 | 332 | |
stream_test.go | H A D | 16-Dec-2019 | 8.3 KiB | 355 | 306 | |
tagkey_test.go | H A D | 16-Dec-2019 | 2.6 KiB | 116 | 93 | |
tags.go | H A D | 16-Dec-2019 | 1.1 KiB | 45 | 29 | |
tags_test.go | H A D | 16-Dec-2019 | 566 | 29 | 22 |
README.md
1# Safe JSON 2 3This repository contains a fork of the `encoding/json` package from Go 1.6. 4 5The following changes were made: 6 7* Object deserialization uses case-sensitive member name matching instead of 8 [case-insensitive matching](https://www.ietf.org/mail-archive/web/json/current/msg03763.html). 9 This is to avoid differences in the interpretation of JOSE messages between 10 go-jose and libraries written in other languages. 11* When deserializing a JSON object, we check for duplicate keys and reject the 12 input whenever we detect a duplicate. Rather than trying to work with malformed 13 data, we prefer to reject it right away. 14