• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..16-Dec-2019-

testdata/H03-May-2022-

LICENSEH A D16-Dec-20191.4 KiB2824

README.mdH A D16-Dec-2019632 1410

bench_test.goH A D16-Dec-20194.5 KiB224190

decode.goH A D16-Dec-201928.6 KiB1,184854

decode_test.goH A D16-Dec-201933 KiB1,4751,284

encode.goH A D16-Dec-201930.8 KiB1,198862

encode_test.goH A D16-Dec-201910.5 KiB539452

indent.goH A D16-Dec-20193.4 KiB142107

number_test.goH A D16-Dec-20192.2 KiB134116

scanner.goH A D16-Dec-201916.5 KiB624450

scanner_test.goH A D16-Dec-20196.5 KiB317271

stream.goH A D16-Dec-201911.3 KiB481332

stream_test.goH A D16-Dec-20198.3 KiB355306

tagkey_test.goH A D16-Dec-20192.6 KiB11693

tags.goH A D16-Dec-20191.1 KiB4529

tags_test.goH A D16-Dec-2019566 2922

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