go-json 0.3.7.post5
Go_JSON is a modification of the original json module in Python it is meant to work like the json package in Go.
Requires Python: >=3.6
Keywords: json,json2class,golangunmarshal,golangmarshal,class2json

<p align="center">
        <img src="https://raw.githubusercontent.com/DiscPyth/.github/master/assets/Go_JSON.png" alt="Go_JSON" title="Logo of Go_JSON" width=200px></img>
</p>

# Go_JSON

[![Discord](https://img.shields.io/discord/886481241656922122?label=Support%20Server&logo=discord&style=flat-square&color=5865f2&labelColor=22272e)](https://discord.gg/8RATdNBs6n)
[![GitHub Latest Commit](https://img.shields.io/github/last-commit/DiscPyth/Go_JSON?labelColor=22272e&label=Latest%20Commit&logo=github&style=flat-square)](https://github.com/DiscPyth/Go_JSON)
[![GitHub](https://img.shields.io/github/license/DiscPyth/Go_JSON?color=22272e&label=%20&logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI%2BCiAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNOC43NS43NWEuNzUuNzUgMCAwMC0xLjUgMFYyaC0uOTg0Yy0uMzA1IDAtLjYwNC4wOC0uODY5LjIzbC0xLjI4OC43MzdBLjI1LjI1IDAgMDEzLjk4NCAzSDEuNzVhLjc1Ljc1IDAgMDAwIDEuNWguNDI4TC4wNjYgOS4xOTJhLjc1Ljc1IDAgMDAuMTU0LjgzOGwuNTMtLjUzLS41My41M3YuMDAxbC4wMDIuMDAyLjAwMi4wMDIuMDA2LjAwNi4wMTYuMDE1LjA0NS4wNGEzLjUxNCAzLjUxNCAwIDAwLjY4Ni40NUE0LjQ5MiA0LjQ5MiAwIDAwMyAxMWMuODggMCAxLjU1Ni0uMjIgMi4wMjMtLjQ1NGEzLjUxNSAzLjUxNSAwIDAwLjY4Ni0uNDVsLjA0NS0uMDQuMDE2LS4wMTUuMDA2LS4wMDYuMDAyLS4wMDIuMDAxLS4wMDJMNS4y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zz4%3D&style=flat-square)](https://github.com/DiscPyth/Go_JSON/blob/main/LICENSE)
[![GitHub Issues](https://img.shields.io/github/issues/DiscPyth/Go_JSON?color=22272e&label=%20&logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI%2BCiAgPHBhdGggZD0iTTggMGE4IDggMCAxMDAgMTZBOCA4IDAgMDA4IDB6TTEuNSA4YTYuNSA2LjUgMCAxMTEzIDAgNi41IDYuNSAwIDAxLTEzIDB6IiBmaWxsPSIjZjVmNWY1Ii8%2BCiAgPHBhdGggZD0iTTggOS41YTEuNSAxLjUgMCAxMDAtMyAxLjUgMS41IDAgMDAwIDN6IiBmaWxsPSIjZjVmNWY1Ii8%2BCiA8L3N2Zz4%3D&style=flat-square)](https://github.com/DiscPyth/Go_JSON/issues)
[![GitHub Pull Requests](https://img.shields.io/github/issues-pr/DiscPyth/Go_JSON?color=22272e&label=%20&logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI%2BCiAgPHBhdGggZD0iTTcuMTc3IDMuMDczTDkuNTczLjY3N0EuMjUuMjUgMCAwMTEwIC44NTR2NC43OTJhLjI1LjI1IDAgMDEtLjQyNy4xNzdMNy4xNzcgMy40MjdhLjI1LjI1IDAgMDEwLS4zNTR6TTMuNzUgMi41YS43NS43NSAwIDEwMCAxLjUuNzUuNzUgMCAwMDAtMS41em0tMi4yNS43NWEyLjI1IDIuMjUgMCAxMTMgMi4xMjJ2NS4yNTZhMi4yNTEgMi4yNTEgMCAxMS0xLjUgMFY1LjM3MkEyLjI1IDIuMjUgMCAwMTEuNSAzLjI1ek0xMSAyLjVoLTFWNGgxYTEgMSAwIDAxMSAxdjUuNjI4YTIuMjUxIDIuMjUxIDAgMTAxLjUgMFY1QTIuNSAyLjUgMCAwMDExIDIuNXptMSAxMC4yNWEuNzUuNzUgMCAxMTEuNSAwIC43NS43NSAwIDAxLTEuNSAwek0zLjc1IDEyYS43NS43NSAwIDEwMCAxLjUuNzUuNzUgMCAwMDAtMS41eiIgZmlsbD0iI2Y1ZjVmNSIvPgogPC9zdmc%2B&style=flat-square)](https://github.com/DiscPyth/Go_JSON/pulls)
[![GitHub Forks](https://img.shields.io/github/forks/DiscPyth/Go_JSON?color=22272e&label=%20&logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI%2BCiAgPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNNSAzLjI1YS43NS43NSAwIDExLTEuNSAwIC43NS43NSAwIDAxMS41IDB6bTAgMi4xMjJhMi4yNSAyLjI1IDAgMTAtMS41IDB2Ljg3OEEyLjI1IDIuMjUgMCAwMDUuNzUgOC41aDEuNXYyLjEyOGEyLjI1MSAyLjI1MSAwIDEwMS41IDBWOC41aDEuNWEyLjI1IDIuMjUgMCAwMDIuMjUtMi4yNXYtLjg3OGEyLjI1IDIuMjUgMCAxMC0xLjUgMHYuODc4YS43NS43NSAwIDAxLS43NS43NWgtNC41QS43NS43NSAwIDAxNSA2LjI1di0uODc4em0zLjc1IDcuMzc4YS43NS43NSAwIDExLTEuNSAwIC43NS43NSAwIDAxMS41IDB6bTMtOC43NWEuNzUuNzUgMCAxMDAtMS41Ljc1Ljc1IDAgMDAwIDEuNXoiIGZpbGw9IiNmNWY1ZjUiLz4gCiA8L3N2Zz4%3D&style=flat-square)](https://github.com/DiscPyth/Go_JSON/network/members)
[![GitHub Repo stars](https://img.shields.io/github/stars/DiscPyth/Go_JSON?color=22272e&label=%20&logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGFyaWEtaGlkZGVuPSJ0cnVlIiBoZWlnaHQ9IjE2IiB2aWV3Qm94PSIwIDAgMTYgMTYiIHZlcnNpb249IjEuMSIgd2lkdGg9IjE2IiBkYXRhLXZpZXctY29tcG9uZW50PSJ0cnVlIiBjbGFzcz0ib2N0aWNvbiBvY3RpY29uLXN0YXItZmlsbCBtci0xIj4KICAgIDxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTggLjI1YS43NS43NSAwIDAxLjY3My40MThsMS44ODIgMy44MTUgNC4yMS42MTJhLjc1Ljc1IDAgMDEuNDE2IDEuMjc5bC0zLjA0NiAyLjk3LjcxOSA0LjE5MmEuNzUuNzUgMCAwMS0xLjA4OC43OTFMOCAxMi4zNDdsLTMuNzY2IDEuOThhLjc1Ljc1IDAgMDEtMS4wODgtLjc5bC43Mi00LjE5NEwuODE4IDYuMzc0YS43NS43NSAwIDAxLjQxNi0xLjI4bDQuMjEtLjYxMUw3LjMyNy42NjhBLjc1Ljc1IDAgMDE4IC4yNXoiIGZpbGw9IiNFRkVGRUYiLz4KPC9zdmc%2B&style=flat-square)](https://github.com/DiscPyth/Go_JSON/stargazers)

**Go_JSON** is a modification of the original **[json](https://github.com/python/cpython/tree/main/Lib/json)** module in Python which is written by **Bob Ippolito**.\
Go_JSON supports all the basic functionality by the json module and ships with more goodies!
‎
Go_JSON was initially meant to work like the [json](https://pkg.go.dev/encoding/json) package in Go, to be specific it was created for one purpose to mimic [marshal](https://pkg.go.dev/encoding/json#Marshal) and [unmarshal](https://pkg.go.dev/encoding/json#Unmarshal) from Go's json package.

**Documentation : [DiscPyth Website](https://discpyth.github.io/pages/go_json)**\
**Install : `pip install go_json`**
‎
### What can it do? And why `class`es instead of `dict`s?
‎
- You have easier access - `json_dict["employee-1"]["data"]["socials"]["github"]["repos"]["python"]["0"]...` vs `json_class.employee_1.data.socials.github.repos.python[0]...`
- More flexibility
  + Choose which keys to ignore
  + Choose if we want `dict` or raw `str` or a "Struct" `class` instance
  + Ignore values on dump if `None`.
  + Can assign different variable names for each keys.
- Type Hints are a thing `(TypedDict(s) do exist but meh ¯\_(ツ)_/¯ )`
‎

**Thanks to **[@tutonix_art](https://www.instagram.com/tutonix_art/)** for the very unique logo for Go_JSON!**
> © All Rights Reserved. GoLang Organization® and JSON Organization® respectively for the use of their logo in Go_JSON's logo.