Useful JSON go packages
go get github.com/itsmurugappan/json
Compares to JSON strings and gives the top level fields that has changed.
Example
import (
"fmt"
json "github.com/itsmurugappan/transform"
)
.....
a := `{"a": "1", "b": [{"a": "2"},{"a": "3"}], "c": {"a": "1"}}`
b := `{"c": {"a": "1", "b": "1"}, "a": "2", "b": [{"a": "2"},{"a": "3"}]}`
fmt.Println(json.Diff(a,b))
#OUT
[a,c]
Parse and Validate a HTTP Request Body into the given json Struct
The main packages I have used