jsoncs

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2021 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

Package jsoncs implements of the JSON Canonicalization Scheme (JCS) as specified in RFC 8785.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

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

Format transforms the JSON input to its canonical form. The input must comply with RFC 7493. It reuses the provided input buffer.

func Valid

func Valid(b []byte) bool

Valid reports whether the JSON input is in canonical form. Invalid JSON input is reported as false.

Types

This section is empty.

Notes

Bugs

  • On Go 1.12 and earlier, float formatting produces incorrect results in some rare cases due to a rounding error.

Jump to

Keyboard shortcuts

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