jsoneq

package
v1.4.120 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AreEqual

func AreEqual(a, b string, opts ...Option) bool

AreEqual compares two JSON strings for semantic equality, ignoring array ordering.

func Canonicalize

func Canonicalize(v any)

Canonicalize recursively sorts arrays within a JSON-like structure.

func Prune

func Prune(v any, opts ...Option)

Prune recursively removes default JSON values given some options.

Types

type Option

type Option func(*options)

Option represents an option for testing JSON object equality.

func PruneEmptyObjects

func PruneEmptyObjects() Option

func PruneEmptySlices

func PruneEmptySlices() Option

func PruneEmptyStrings

func PruneEmptyStrings() Option

Jump to

Keyboard shortcuts

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