A Go package for ease and simple operations with JSON data.
Easy JSON is a Go package that provides a convenient way to work with JSON data. It offers functionality for creating, manipulating, and comparing JSON objects and arrays.
To use Easy JSON in your Go project, you can simply import it using Go modules:
import "github.com/foliagecp/easyjson"obj := easyjson.NewJSONObject()arr := easyjson.NewJSONArray()obj.SetByPath("user.name", easyjson.NewJSON("John"))name := obj.GetByPath("user.name").ToString()obj1 := easyjson.NewJSONObject()
obj2 := easyjson.NewJSONObject()
obj1.DeepMerge(obj2)isEqual := obj1.Equals(obj2)For more details and usage examples, please refer to the official documentation.
Unless otherwise noted, the easyjson source files are distributed under the Apache Version 2.0 license found in the LICENSE file.
Contributions and bug reports are welcome! Please submit issues or pull requests to help improve this package.