Fork of Go's original encoding/json that modify omitempty to output "null"
Go to file
Reinaldy Rafli f1d95b0428
ref: license should not be MIT
2023-09-10 18:03:39 +07:00
LICENSE ref: license should not be MIT 2023-09-10 18:03:39 +07:00
README.md ref: license should not be MIT 2023-09-10 18:03:23 +07:00
decode.go feat: initialize fork 2023-09-10 18:00:19 +07:00
decode_test.go feat: initialize fork 2023-09-10 18:00:19 +07:00
encode.go feat: initialize fork 2023-09-10 18:00:19 +07:00
encode_test.go feat: initialize fork 2023-09-10 18:00:19 +07:00
fold.go feat: initialize fork 2023-09-10 18:00:19 +07:00
fold_test.go feat: initialize fork 2023-09-10 18:00:19 +07:00
fuzz.go feat: initialize fork 2023-09-10 18:00:19 +07:00
fuzz_test.go feat: initialize fork 2023-09-10 18:00:19 +07:00
go.mod feat: initialize fork 2023-09-10 18:00:19 +07:00
indent.go feat: initialize fork 2023-09-10 18:00:19 +07:00
number_test.go feat: initialize fork 2023-09-10 18:00:19 +07:00
scanner.go feat: initialize fork 2023-09-10 18:00:19 +07:00
scanner_test.go feat: initialize fork 2023-09-10 18:00:19 +07:00
stream.go feat: initialize fork 2023-09-10 18:00:19 +07:00
stream_test.go feat: initialize fork 2023-09-10 18:00:19 +07:00
tables.go feat: initialize fork 2023-09-10 18:00:19 +07:00
tagkey_test.go feat: initialize fork 2023-09-10 18:00:19 +07:00
tags.go feat: initialize fork 2023-09-10 18:00:19 +07:00
tags_test.go feat: initialize fork 2023-09-10 18:00:19 +07:00

README.md

JSON Package

This is a fork of Go's original encoding/json standard library.

One thing that we need is to modify the omitempty tag behavior to put a "null" value instead of literally omitting the field.

To see the complete changes between the original standard library and the fork version, use this link: 90b758c3b0..b7a1562233

License

Copyright (c) 2023 Reinaldy Rafli <aldy505@proton.me>.
Copyright (c) 2009 The Go Authors. All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

   * Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
   * Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
   * Neither the name of Google Inc. nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

See LICENSE