Help us shape the future of Go! Take the 2026 Go Developer Survey

jcs

package
v1.5.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package jcs implements the JSON Canonicalization Scheme (RFC 8785) on top of the standard library's encoding/json/jsontext package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Canonicalize

func Canonicalize(b []byte) ([]byte, error)

Canonicalize returns the RFC 8785 canonical form of the JSON value in b. b is not modified.

Numbers outside the float64 range are rejected rather than clamped to ±math.MaxFloat64, so that canonicalization never changes the value of the input.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL