This is a Go package to produce Matrix Canonical JSON. It is essentially just json.go from gomatrixserverlib without all the other files that are completely useless for non-server use cases.
The original project is licensed under the Apache 2.0 license.