package cjson

import "github.com/secure-systems-lab/go-securesystemslib/cjson"

Index

Functions

func EncodeCanonical

func EncodeCanonical(obj interface{}) ([]byte, error)

EncodeCanonical JSON canonicalizes the passed object and returns it as a byte slice. It uses the OLPC canonical JSON specification (see http://wiki.laptop.org/go/Canonical_JSON). If canonicalization fails the byte slice is nil and the second return value contains the error.

Source Files

canonicaljson.go

Version
v0.2.0
Published
Dec 1, 2021
Platform
js/wasm
Imports
7 packages
Last checked
10 months ago

Tools for package owners.